@mychoice/mychoice-sdk-store 2.0.0 → 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/README.md +2 -2
- package/dist/cjs/handlers/dataHandlers/PostalDataHandler/PostalDataHandler.d.ts +1 -1
- package/dist/cjs/handlers/dataHandlers/VehicleDataHandlers/interfaces.d.ts +1 -1
- package/dist/cjs/handlers/dataHandlers/shared/dataReducer/interfaces.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/services/httpRequest/interfaces.d.ts +1 -1
- package/dist/cjs/states/StoreProvider.d.ts +1 -1
- package/dist/cjs/states/reducers/states/ConfigState/AppConfigState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/ConfigState/AppDeviceState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/ConfigState/AppModalState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/DiscountState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/DriverInfoState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/DriverLicenceState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/helper.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/DriverState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/helper.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/DiscountState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/DwellingState/helper.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/DwellingState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/DwellingState/localStore.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormLifeState/ApplicantState/interfaces.d.ts +1 -1
- package/dist/cjs/states/reducers/states/formStates/shared/helpers.d.ts +1 -1
- package/dist/esm/handlers/dataHandlers/PostalDataHandler/PostalDataHandler.d.ts +1 -1
- package/dist/esm/handlers/dataHandlers/VehicleDataHandlers/interfaces.d.ts +1 -1
- package/dist/esm/handlers/dataHandlers/shared/dataReducer/interfaces.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/services/httpRequest/interfaces.d.ts +1 -1
- package/dist/esm/states/StoreProvider.d.ts +1 -1
- package/dist/esm/states/reducers/states/ConfigState/AppConfigState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/ConfigState/AppDeviceState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/ConfigState/AppModalState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/DiscountState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/DriverInfoState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/DriverLicenceState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/helper.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/DriverState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/helper.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormHomeState/DiscountState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormHomeState/DwellingState/helper.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormHomeState/DwellingState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormHomeState/DwellingState/localStore.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/FormLifeState/ApplicantState/interfaces.d.ts +1 -1
- package/dist/esm/states/reducers/states/formStates/shared/helpers.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# `@
|
|
1
|
+
# `@mychoice/mychoice-sdk-store`
|
|
2
2
|
|
|
3
3
|
> TODO: description
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
const mychoiceSdkStore = require('@
|
|
8
|
+
const mychoiceSdkStore = require('@mychoice/mychoice-sdk-store');
|
|
9
9
|
|
|
10
10
|
// TODO: DEMONSTRATE API
|
|
11
11
|
```
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InsuranceTypes } from '@
|
|
1
|
+
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { UseHandlerPostalInterface } from './interfaces';
|
|
3
3
|
export declare const useHandlerPostal: (insuranceType: InsuranceTypes) => UseHandlerPostalInterface;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectOptionInterface } from '@
|
|
1
|
+
import { SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { DataHandlerRequestState } from '../shared';
|
|
3
3
|
export type UseHandlerVehicleMakeInterface = DataHandlerRequestState & {
|
|
4
4
|
getVehicleMake: (year: string) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RequestStatusTypes } from '@
|
|
1
|
+
import { RequestStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { DataHandlerActionTypes } from './actions';
|
|
3
3
|
export type DataHandlerRequestState = {
|
|
4
4
|
status: RequestStatusTypes;
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var axios = require('axios');
|
|
6
|
-
var mychoiceSdkComponents = require('@
|
|
6
|
+
var mychoiceSdkComponents = require('@mychoice/mychoice-sdk-components');
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var reactRedux = require('react-redux');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosError, AxiosResponse, CancelToken, Method } from 'axios';
|
|
2
|
-
import { RequestTypes, HttpRequestHeaderTypes } from '@
|
|
2
|
+
import { RequestTypes, HttpRequestHeaderTypes } from '@mychoice/mychoice-sdk-components';
|
|
3
3
|
export type HTTPRequestParamsTypes = never | null;
|
|
4
4
|
export type DefaultResponseData = {
|
|
5
5
|
count: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SdkFC } from '@
|
|
1
|
+
import { SdkFC } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
export declare const StoreProvider: SdkFC;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppTypes, InsuranceTypes } from '@
|
|
1
|
+
import { AppTypes, InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreConfigAppConfigActionTypes } from './actions';
|
|
3
3
|
export interface AppConfigStateInterface {
|
|
4
4
|
isReady: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeviceTypes, ScreenBPTypes } from '@
|
|
1
|
+
import { DeviceTypes, ScreenBPTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreConfigAppDeviceActionTypes } from './actions';
|
|
3
3
|
export interface DeviceScreenInterface {
|
|
4
4
|
width: number;
|
package/dist/cjs/states/reducers/states/formStates/FormCarState/DiscountState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriverPriorityTypes, ValidationStatusTypes } from '@
|
|
1
|
+
import { DriverPriorityTypes, ValidationStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormCarDiscountActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface DiscountQuoterInfoInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OccupationTypes, GenderTypes } from '@
|
|
1
|
+
import { OccupationTypes, GenderTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormCarDriverInfoActionTypes } from './actions';
|
|
3
3
|
import { BirthDatePayloadType, FormCarDriverStateInterface } from '../interfaces';
|
|
4
4
|
export type FormCarDriverInfoStateActionType = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriverLicenceTypes } from '@
|
|
1
|
+
import { DriverLicenceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormCarDriverLicenceActionTypes } from './actions';
|
|
3
3
|
import { FormCarDriverStateInterface, LicenceDatePayloadType } from '../interfaces';
|
|
4
4
|
import { FormCarConfigStateInterface } from '../../ConfigState';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateTypes, SelectDateInterface } from '@
|
|
1
|
+
import { DateTypes, SelectDateInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { BirthDatePayloadType, FormCarDriverStateInterface, LicenceAgePayloadType, LicenceDatePayloadType, LicenceTypePayloadType } from './interfaces';
|
|
3
3
|
export declare const setDriverProperty: (state: FormCarDriverStateInterface, name: string, value: boolean) => FormCarDriverStateInterface;
|
|
4
4
|
export declare const removeDriverItem: (state: FormCarDriverStateInterface, driverIndex: number) => FormCarDriverStateInterface;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriverLicenceTypes, GenderTypes, OccupationTypes } from '@
|
|
1
|
+
import { DriverLicenceTypes, GenderTypes, OccupationTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StateBaseInterface, TabStateInterface } from '../../shared';
|
|
3
3
|
import { FormCarConfigStateInterface } from '../ConfigState';
|
|
4
4
|
export interface DriverLicenceInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VehicleConditionTypes } from '@
|
|
1
|
+
import { VehicleConditionTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { FormCarVehicleStateInterface } from './interfaces';
|
|
3
3
|
export declare const removeVehicleItem: (state: FormCarVehicleStateInterface, vehicleIndex: number) => FormCarVehicleStateInterface;
|
|
4
4
|
export declare const createVehicleItem: (state: FormCarVehicleStateInterface) => FormCarVehicleStateInterface;
|
package/dist/cjs/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VehicleConditionTypes } from '@
|
|
1
|
+
import { VehicleConditionTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormCarVehicleActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface, TabStateInterface } from '../../shared';
|
|
4
4
|
export interface VehicleComprehensiveInterface {
|
package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HomeOwnerTypes } from '@
|
|
1
|
+
import { HomeOwnerTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormHomeAddressActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface FormHomeAddressStateInterface extends StateBaseInterface {
|
package/dist/cjs/states/reducers/states/formStates/FormHomeState/DiscountState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValidationStatusTypes } from '@
|
|
1
|
+
import { ValidationStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormHomeDiscountActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface QuoterInfoInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsuranceTypes } from '@
|
|
1
|
+
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { FormHomeDwellingStateInterface } from './interfaces';
|
|
3
3
|
export declare const setHomeCoverageProperty: (state: FormHomeDwellingStateInterface, name: string, value: number | boolean | string) => FormHomeDwellingStateInterface;
|
|
4
4
|
export declare const getDwellingInitialState: (type: InsuranceTypes) => FormHomeDwellingStateInterface;
|
package/dist/cjs/states/reducers/states/formStates/FormHomeState/DwellingState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsuranceTypes } from '@
|
|
1
|
+
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormHomeDwellingActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface DwellingHeatingItemInterface {
|
package/dist/cjs/states/reducers/states/formStates/FormHomeState/DwellingState/localStore.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsuranceTypes } from '@
|
|
1
|
+
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { FormHomeDwellingStateInterface } from './interfaces';
|
|
3
3
|
export declare const getInsuranceType: () => InsuranceTypes.Car | InsuranceTypes.Home | InsuranceTypes.Condo | InsuranceTypes.Tenant;
|
|
4
4
|
export declare const getLocalDwellings: (localIndex?: string | undefined) => FormHomeDwellingStateInterface;
|
package/dist/cjs/states/reducers/states/formStates/FormLifeState/ApplicantState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenderTypes, ValidationStatusTypes } from '@
|
|
1
|
+
import { GenderTypes, ValidationStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormLifeApplicantActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface FormLifeApplicantStateInterface extends StateBaseInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectDateInterface } from '@
|
|
1
|
+
import { SelectDateInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StateBaseInterface } from './interfaces';
|
|
3
3
|
export declare function setStateProperty<T extends StateBaseInterface>(state: T, key: string, value: string | number | boolean | SelectDateInterface | object, objectKey?: string | null): T;
|
|
4
4
|
export declare function setListItemProperty<T extends StateBaseInterface>(state: T, listKey: string, itemIndex: number, itemKey: string, value: string | number | boolean): T;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InsuranceTypes } from '@
|
|
1
|
+
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { UseHandlerPostalInterface } from './interfaces';
|
|
3
3
|
export declare const useHandlerPostal: (insuranceType: InsuranceTypes) => UseHandlerPostalInterface;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectOptionInterface } from '@
|
|
1
|
+
import { SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { DataHandlerRequestState } from '../shared';
|
|
3
3
|
export type UseHandlerVehicleMakeInterface = DataHandlerRequestState & {
|
|
4
4
|
getVehicleMake: (year: string) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RequestStatusTypes } from '@
|
|
1
|
+
import { RequestStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { DataHandlerActionTypes } from './actions';
|
|
3
3
|
export type DataHandlerRequestState = {
|
|
4
4
|
status: RequestStatusTypes;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { defaultLocalIndex, HttpRequestHeaderTypes, RequestTypes, ModalTypes, DeviceTypes, ScreenBPTypes, DeviceTypeWidthList, ScreenBPList, AppTypes, InsuranceTypes, VehicleConditionTypes, VehiclePrimaryUseTypes, deepClone, CoverageTypes, getFormattedDate, GenderTypes, OccupationTypes, addDaysToDate, compareDates, DriverLicenceTypes, DateTypes, getLicenceMinDate, addYearsToDate, subMonthsFromDate, getDifferenceInYears, DriverListTypes, addMonthsToDate, ValidationStatusTypes, DriverPriorityTypes, defaultBrokerPhone, subYearsFromDate, ApplicantListTypes, useEffectOnce, getInsuranceType as getInsuranceType$2, API_AUTH, RequestStatusTypes, PROFILE_API, getDaysOfMonth, getDifferenceInHours, MAX_LOCAL_STORAGE_HOURS_THEBIG, MAX_LOCAL_STORAGE_HOURS, API_APP, API_FORM_CAR, supportedProvinceCodes, API_FORM_HOME, API_FORM_LIFE } from '@
|
|
2
|
+
import { defaultLocalIndex, HttpRequestHeaderTypes, RequestTypes, ModalTypes, DeviceTypes, ScreenBPTypes, DeviceTypeWidthList, ScreenBPList, AppTypes, InsuranceTypes, VehicleConditionTypes, VehiclePrimaryUseTypes, deepClone, CoverageTypes, getFormattedDate, GenderTypes, OccupationTypes, addDaysToDate, compareDates, DriverLicenceTypes, DateTypes, getLicenceMinDate, addYearsToDate, subMonthsFromDate, getDifferenceInYears, DriverListTypes, addMonthsToDate, ValidationStatusTypes, DriverPriorityTypes, defaultBrokerPhone, subYearsFromDate, ApplicantListTypes, useEffectOnce, getInsuranceType as getInsuranceType$2, API_AUTH, RequestStatusTypes, PROFILE_API, getDaysOfMonth, getDifferenceInHours, MAX_LOCAL_STORAGE_HOURS_THEBIG, MAX_LOCAL_STORAGE_HOURS, API_APP, API_FORM_CAR, supportedProvinceCodes, API_FORM_HOME, API_FORM_LIFE } from '@mychoice/mychoice-sdk-components';
|
|
3
3
|
import { useMemo, useReducer, useState } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import { Provider, useSelector, useDispatch } from 'react-redux';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosError, AxiosResponse, CancelToken, Method } from 'axios';
|
|
2
|
-
import { RequestTypes, HttpRequestHeaderTypes } from '@
|
|
2
|
+
import { RequestTypes, HttpRequestHeaderTypes } from '@mychoice/mychoice-sdk-components';
|
|
3
3
|
export type HTTPRequestParamsTypes = never | null;
|
|
4
4
|
export type DefaultResponseData = {
|
|
5
5
|
count: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SdkFC } from '@
|
|
1
|
+
import { SdkFC } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
export declare const StoreProvider: SdkFC;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppTypes, InsuranceTypes } from '@
|
|
1
|
+
import { AppTypes, InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreConfigAppConfigActionTypes } from './actions';
|
|
3
3
|
export interface AppConfigStateInterface {
|
|
4
4
|
isReady: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeviceTypes, ScreenBPTypes } from '@
|
|
1
|
+
import { DeviceTypes, ScreenBPTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreConfigAppDeviceActionTypes } from './actions';
|
|
3
3
|
export interface DeviceScreenInterface {
|
|
4
4
|
width: number;
|
package/dist/esm/states/reducers/states/formStates/FormCarState/DiscountState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriverPriorityTypes, ValidationStatusTypes } from '@
|
|
1
|
+
import { DriverPriorityTypes, ValidationStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormCarDiscountActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface DiscountQuoterInfoInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OccupationTypes, GenderTypes } from '@
|
|
1
|
+
import { OccupationTypes, GenderTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormCarDriverInfoActionTypes } from './actions';
|
|
3
3
|
import { BirthDatePayloadType, FormCarDriverStateInterface } from '../interfaces';
|
|
4
4
|
export type FormCarDriverInfoStateActionType = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriverLicenceTypes } from '@
|
|
1
|
+
import { DriverLicenceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormCarDriverLicenceActionTypes } from './actions';
|
|
3
3
|
import { FormCarDriverStateInterface, LicenceDatePayloadType } from '../interfaces';
|
|
4
4
|
import { FormCarConfigStateInterface } from '../../ConfigState';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateTypes, SelectDateInterface } from '@
|
|
1
|
+
import { DateTypes, SelectDateInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { BirthDatePayloadType, FormCarDriverStateInterface, LicenceAgePayloadType, LicenceDatePayloadType, LicenceTypePayloadType } from './interfaces';
|
|
3
3
|
export declare const setDriverProperty: (state: FormCarDriverStateInterface, name: string, value: boolean) => FormCarDriverStateInterface;
|
|
4
4
|
export declare const removeDriverItem: (state: FormCarDriverStateInterface, driverIndex: number) => FormCarDriverStateInterface;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DriverLicenceTypes, GenderTypes, OccupationTypes } from '@
|
|
1
|
+
import { DriverLicenceTypes, GenderTypes, OccupationTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StateBaseInterface, TabStateInterface } from '../../shared';
|
|
3
3
|
import { FormCarConfigStateInterface } from '../ConfigState';
|
|
4
4
|
export interface DriverLicenceInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VehicleConditionTypes } from '@
|
|
1
|
+
import { VehicleConditionTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { FormCarVehicleStateInterface } from './interfaces';
|
|
3
3
|
export declare const removeVehicleItem: (state: FormCarVehicleStateInterface, vehicleIndex: number) => FormCarVehicleStateInterface;
|
|
4
4
|
export declare const createVehicleItem: (state: FormCarVehicleStateInterface) => FormCarVehicleStateInterface;
|
package/dist/esm/states/reducers/states/formStates/FormCarState/VehicleState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VehicleConditionTypes } from '@
|
|
1
|
+
import { VehicleConditionTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormCarVehicleActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface, TabStateInterface } from '../../shared';
|
|
4
4
|
export interface VehicleComprehensiveInterface {
|
package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HomeOwnerTypes } from '@
|
|
1
|
+
import { HomeOwnerTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormHomeAddressActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface FormHomeAddressStateInterface extends StateBaseInterface {
|
package/dist/esm/states/reducers/states/formStates/FormHomeState/DiscountState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValidationStatusTypes } from '@
|
|
1
|
+
import { ValidationStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormHomeDiscountActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface QuoterInfoInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsuranceTypes } from '@
|
|
1
|
+
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { FormHomeDwellingStateInterface } from './interfaces';
|
|
3
3
|
export declare const setHomeCoverageProperty: (state: FormHomeDwellingStateInterface, name: string, value: number | boolean | string) => FormHomeDwellingStateInterface;
|
|
4
4
|
export declare const getDwellingInitialState: (type: InsuranceTypes) => FormHomeDwellingStateInterface;
|
package/dist/esm/states/reducers/states/formStates/FormHomeState/DwellingState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsuranceTypes } from '@
|
|
1
|
+
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormHomeDwellingActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface DwellingHeatingItemInterface {
|
package/dist/esm/states/reducers/states/formStates/FormHomeState/DwellingState/localStore.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InsuranceTypes } from '@
|
|
1
|
+
import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { FormHomeDwellingStateInterface } from './interfaces';
|
|
3
3
|
export declare const getInsuranceType: () => InsuranceTypes.Car | InsuranceTypes.Home | InsuranceTypes.Condo | InsuranceTypes.Tenant;
|
|
4
4
|
export declare const getLocalDwellings: (localIndex?: string | undefined) => FormHomeDwellingStateInterface;
|
package/dist/esm/states/reducers/states/formStates/FormLifeState/ApplicantState/interfaces.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenderTypes, ValidationStatusTypes } from '@
|
|
1
|
+
import { GenderTypes, ValidationStatusTypes } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StoreFormLifeApplicantActionTypes } from './actions';
|
|
3
3
|
import { StateBaseInterface } from '../../shared';
|
|
4
4
|
export interface FormLifeApplicantStateInterface extends StateBaseInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectDateInterface } from '@
|
|
1
|
+
import { SelectDateInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import { StateBaseInterface } from './interfaces';
|
|
3
3
|
export declare function setStateProperty<T extends StateBaseInterface>(state: T, key: string, value: string | number | boolean | SelectDateInterface | object, objectKey?: string | null): T;
|
|
4
4
|
export declare function setListItemProperty<T extends StateBaseInterface>(state: T, listKey: string, itemIndex: number, itemKey: string, value: string | number | boolean): T;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SdkFC, ModalTypes, AppTypes, InsuranceTypes, DeviceTypes, ScreenBPTypes, VehicleConditionTypes, DriverLicenceTypes, GenderTypes, OccupationTypes, DriverPriorityTypes, ValidationStatusTypes, RequestStatusTypes, SelectOptionInterface } from '@
|
|
1
|
+
import { SdkFC, ModalTypes, AppTypes, InsuranceTypes, DeviceTypes, ScreenBPTypes, VehicleConditionTypes, DriverLicenceTypes, GenderTypes, OccupationTypes, DriverPriorityTypes, ValidationStatusTypes, RequestStatusTypes, SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
|
|
2
2
|
import * as redux from 'redux';
|
|
3
3
|
|
|
4
4
|
declare const initHttpResponse: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mychoice/mychoice-sdk-store",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
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
|
-
"@
|
|
32
|
+
"@mychoice/mychoice-sdk-components": "^2.0.1",
|
|
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": "d343cd66b47905a65fb230f9afbe0ac69f945ea7"
|
|
41
41
|
}
|