@mychoice/mychoice-sdk-store 2.1.51 → 2.1.67

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 (26) hide show
  1. package/dist/cjs/index.js +142 -75
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/states/reducers/states/formStates/FormLifeState/CoverageState/actions.d.ts +3 -1
  4. package/dist/cjs/states/reducers/states/formStates/FormLifeState/CoverageState/interfaces.d.ts +14 -0
  5. package/dist/esm/index.js +142 -75
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/esm/states/reducers/states/formStates/FormLifeState/CoverageState/actions.d.ts +3 -1
  8. package/dist/esm/states/reducers/states/formStates/FormLifeState/CoverageState/interfaces.d.ts +14 -0
  9. package/dist/index.d.ts +17 -1
  10. package/package.json +3 -3
  11. package/dist/cjs/handlers/dataHandlers/QuoteDataHandler/QuoteDataHandler.d.ts +0 -2
  12. package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/actions.d.ts +0 -9
  13. package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/hoox.d.ts +0 -2
  14. package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/index.d.ts +0 -1
  15. package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/initialState.d.ts +0 -2
  16. package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/interfaces.d.ts +0 -52
  17. package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/localStore.d.ts +0 -3
  18. package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/reducer.d.ts +0 -2
  19. package/dist/esm/handlers/dataHandlers/QuoteDataHandler/QuoteDataHandler.d.ts +0 -2
  20. package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/actions.d.ts +0 -9
  21. package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/hoox.d.ts +0 -2
  22. package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/index.d.ts +0 -1
  23. package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/initialState.d.ts +0 -2
  24. package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/interfaces.d.ts +0 -52
  25. package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/localStore.d.ts +0 -3
  26. package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/reducer.d.ts +0 -2
@@ -5,5 +5,7 @@ export declare enum StoreFormLifeCoverageActionTypes {
5
5
  FormLifeCoverageSelect = "FormLifeCoverageSelect",
6
6
  FormLifeCoverageValidate = "FormLifeCoverageValidate",
7
7
  FormLifeCoverageValidateSet = "FormLifeCoverageValidateSet",
8
- FormLifeCoverageClear = "FormLifeCoverageClear"
8
+ FormLifeCoverageClear = "FormLifeCoverageClear",
9
+ FormLifeCitySelect = "FormLifeCitySelectFormLifeCityeSelect",
10
+ FormLifePostalCodeSelect = "FormLifePostalCodeSelect"
9
11
  }
@@ -4,6 +4,8 @@ export interface FormLifeCoverageStateInterface extends StateBaseInterface {
4
4
  province: string;
5
5
  type: string;
6
6
  coverage: string;
7
+ city: string;
8
+ postalCode: string;
7
9
  }
8
10
  export type FormLifeCoverageStateActionType = {
9
11
  type: StoreFormLifeCoverageActionTypes.FormLifeCoverageValidate;
@@ -43,6 +45,18 @@ export type FormLifeCoverageStateActionType = {
43
45
  type: StoreFormLifeCoverageActionTypes.FormLifeCoverageClear;
44
46
  payload?: null;
45
47
  localIndex?: string;
48
+ } | {
49
+ type: StoreFormLifeCoverageActionTypes.FormLifeCitySelect;
50
+ payload: {
51
+ city: string;
52
+ };
53
+ localIndex?: string;
54
+ } | {
55
+ type: StoreFormLifeCoverageActionTypes.FormLifePostalCodeSelect;
56
+ payload: {
57
+ postalCode: string;
58
+ };
59
+ localIndex?: string;
46
60
  };
47
61
  export type FormLifeCoverageStateReducerInterface = (state: FormLifeCoverageStateInterface, action: FormLifeCoverageStateActionType) => FormLifeCoverageStateInterface;
48
62
  export interface FormLifeCoverageHookInterface {
package/dist/index.d.ts CHANGED
@@ -2430,13 +2430,17 @@ declare enum StoreFormLifeCoverageActionTypes {
2430
2430
  FormLifeCoverageSelect = "FormLifeCoverageSelect",
2431
2431
  FormLifeCoverageValidate = "FormLifeCoverageValidate",
2432
2432
  FormLifeCoverageValidateSet = "FormLifeCoverageValidateSet",
2433
- FormLifeCoverageClear = "FormLifeCoverageClear"
2433
+ FormLifeCoverageClear = "FormLifeCoverageClear",
2434
+ FormLifeCitySelect = "FormLifeCitySelectFormLifeCityeSelect",
2435
+ FormLifePostalCodeSelect = "FormLifePostalCodeSelect"
2434
2436
  }
2435
2437
 
2436
2438
  interface FormLifeCoverageStateInterface extends StateBaseInterface {
2437
2439
  province: string;
2438
2440
  type: string;
2439
2441
  coverage: string;
2442
+ city: string;
2443
+ postalCode: string;
2440
2444
  }
2441
2445
  type FormLifeCoverageStateActionType = {
2442
2446
  type: StoreFormLifeCoverageActionTypes.FormLifeCoverageValidate;
@@ -2476,6 +2480,18 @@ type FormLifeCoverageStateActionType = {
2476
2480
  type: StoreFormLifeCoverageActionTypes.FormLifeCoverageClear;
2477
2481
  payload?: null;
2478
2482
  localIndex?: string;
2483
+ } | {
2484
+ type: StoreFormLifeCoverageActionTypes.FormLifeCitySelect;
2485
+ payload: {
2486
+ city: string;
2487
+ };
2488
+ localIndex?: string;
2489
+ } | {
2490
+ type: StoreFormLifeCoverageActionTypes.FormLifePostalCodeSelect;
2491
+ payload: {
2492
+ postalCode: string;
2493
+ };
2494
+ localIndex?: string;
2479
2495
  };
2480
2496
  interface FormLifeCoverageHookInterface {
2481
2497
  coverageState: FormLifeCoverageStateInterface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mychoice/mychoice-sdk-store",
3
- "version": "2.1.51",
3
+ "version": "2.1.67",
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.46",
32
+ "@mychoice/mychoice-sdk-components": "^2.1.67",
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": "0bfcd07acb9ffebca0737900c682a3ce1e427bea"
40
+ "gitHead": "cb54eb0a18e57f630df3014603fcd5d04f773cbf"
41
41
  }
@@ -1,2 +0,0 @@
1
- import { UseHandlerQuoteInterface } from './interfaces';
2
- export declare const QuoteDataHandler: () => UseHandlerQuoteInterface;
@@ -1,9 +0,0 @@
1
- export declare enum StoreFormHomeAddressActionTypes {
2
- FormHomeAddressGetLocal = "FormHomeAddressGetLocal",
3
- FormHomeAddressTypeSelect = "FormHomeAddressTypeSelect",
4
- FormHomeAddressStreetSet = "FormHomeAddressStreetSet",
5
- FormHomeAddressUnitApartmentNumberSet = "FormHomeAddressUnitApartmentNumberSet",
6
- FormHomeAddressValidate = "FormHomeAddressValidate",
7
- FormHomeAddressValidateSet = "FormHomeAddressValidateSet",
8
- FormHomeAddressClear = "FormHomeAddressClear"
9
- }
@@ -1,2 +0,0 @@
1
- import { FormHomeAddressHookInterface } from './interfaces';
2
- export declare const useStoreFormHomeAddress: () => FormHomeAddressHookInterface;
@@ -1 +0,0 @@
1
- export type { FormHomeAddressStateInterface } from './interfaces';
@@ -1,2 +0,0 @@
1
- import { FormHomeAddressStateInterface } from './interfaces';
2
- export declare const formHomeAddressStateInitialState: FormHomeAddressStateInterface;
@@ -1,52 +0,0 @@
1
- import { HomeOwnerTypes } from '@groksmith/mychoice-sdk-components';
2
- import { StoreFormHomeAddressActionTypes } from './actions';
3
- import { StateBaseInterface } from '../../shared';
4
- export interface FormHomeAddressStateInterface extends StateBaseInterface {
5
- type: HomeOwnerTypes | null;
6
- addressStreet: string;
7
- unitApartmentNumber: string;
8
- }
9
- export type FormHomeAddressStateActionType = {
10
- type: StoreFormHomeAddressActionTypes.FormHomeAddressValidate;
11
- payload: {
12
- inValidation: boolean;
13
- };
14
- localIndex?: string;
15
- } | {
16
- type: StoreFormHomeAddressActionTypes.FormHomeAddressValidateSet;
17
- payload: {
18
- isValid: boolean;
19
- };
20
- localIndex?: string;
21
- } | {
22
- type: StoreFormHomeAddressActionTypes.FormHomeAddressGetLocal;
23
- payload?: null;
24
- localIndex?: string;
25
- } | {
26
- type: StoreFormHomeAddressActionTypes.FormHomeAddressTypeSelect;
27
- payload: {
28
- type: HomeOwnerTypes;
29
- };
30
- localIndex?: string;
31
- } | {
32
- type: StoreFormHomeAddressActionTypes.FormHomeAddressUnitApartmentNumberSet;
33
- payload: {
34
- unitApartmentNumber: string;
35
- };
36
- localIndex?: string;
37
- } | {
38
- type: StoreFormHomeAddressActionTypes.FormHomeAddressStreetSet;
39
- payload: {
40
- addressStreet: string;
41
- };
42
- localIndex?: string;
43
- } | {
44
- type: StoreFormHomeAddressActionTypes.FormHomeAddressClear;
45
- payload?: null;
46
- localIndex?: string;
47
- };
48
- export type FormHomeAddressStateReducerInterface = (state: FormHomeAddressStateInterface, action: FormHomeAddressStateActionType) => FormHomeAddressStateInterface;
49
- export interface FormHomeAddressHookInterface {
50
- addressState: FormHomeAddressStateInterface;
51
- dispatchAddressState: (props: FormHomeAddressStateActionType) => void;
52
- }
@@ -1,3 +0,0 @@
1
- import { FormHomeAddressStateInterface } from './interfaces';
2
- export declare const getLocalAddresss: (localIndex?: string | undefined) => FormHomeAddressStateInterface;
3
- export declare const setLocalAddresss: (localIndex: string | undefined, state: FormHomeAddressStateInterface) => FormHomeAddressStateInterface;
@@ -1,2 +0,0 @@
1
- import { FormHomeAddressStateReducerInterface } from './interfaces';
2
- export declare const formHomeAddressStateReducer: FormHomeAddressStateReducerInterface;
@@ -1,2 +0,0 @@
1
- import { UseHandlerQuoteInterface } from './interfaces';
2
- export declare const QuoteDataHandler: () => UseHandlerQuoteInterface;
@@ -1,9 +0,0 @@
1
- export declare enum StoreFormHomeAddressActionTypes {
2
- FormHomeAddressGetLocal = "FormHomeAddressGetLocal",
3
- FormHomeAddressTypeSelect = "FormHomeAddressTypeSelect",
4
- FormHomeAddressStreetSet = "FormHomeAddressStreetSet",
5
- FormHomeAddressUnitApartmentNumberSet = "FormHomeAddressUnitApartmentNumberSet",
6
- FormHomeAddressValidate = "FormHomeAddressValidate",
7
- FormHomeAddressValidateSet = "FormHomeAddressValidateSet",
8
- FormHomeAddressClear = "FormHomeAddressClear"
9
- }
@@ -1,2 +0,0 @@
1
- import { FormHomeAddressHookInterface } from './interfaces';
2
- export declare const useStoreFormHomeAddress: () => FormHomeAddressHookInterface;
@@ -1 +0,0 @@
1
- export type { FormHomeAddressStateInterface } from './interfaces';
@@ -1,2 +0,0 @@
1
- import { FormHomeAddressStateInterface } from './interfaces';
2
- export declare const formHomeAddressStateInitialState: FormHomeAddressStateInterface;
@@ -1,52 +0,0 @@
1
- import { HomeOwnerTypes } from '@groksmith/mychoice-sdk-components';
2
- import { StoreFormHomeAddressActionTypes } from './actions';
3
- import { StateBaseInterface } from '../../shared';
4
- export interface FormHomeAddressStateInterface extends StateBaseInterface {
5
- type: HomeOwnerTypes | null;
6
- addressStreet: string;
7
- unitApartmentNumber: string;
8
- }
9
- export type FormHomeAddressStateActionType = {
10
- type: StoreFormHomeAddressActionTypes.FormHomeAddressValidate;
11
- payload: {
12
- inValidation: boolean;
13
- };
14
- localIndex?: string;
15
- } | {
16
- type: StoreFormHomeAddressActionTypes.FormHomeAddressValidateSet;
17
- payload: {
18
- isValid: boolean;
19
- };
20
- localIndex?: string;
21
- } | {
22
- type: StoreFormHomeAddressActionTypes.FormHomeAddressGetLocal;
23
- payload?: null;
24
- localIndex?: string;
25
- } | {
26
- type: StoreFormHomeAddressActionTypes.FormHomeAddressTypeSelect;
27
- payload: {
28
- type: HomeOwnerTypes;
29
- };
30
- localIndex?: string;
31
- } | {
32
- type: StoreFormHomeAddressActionTypes.FormHomeAddressUnitApartmentNumberSet;
33
- payload: {
34
- unitApartmentNumber: string;
35
- };
36
- localIndex?: string;
37
- } | {
38
- type: StoreFormHomeAddressActionTypes.FormHomeAddressStreetSet;
39
- payload: {
40
- addressStreet: string;
41
- };
42
- localIndex?: string;
43
- } | {
44
- type: StoreFormHomeAddressActionTypes.FormHomeAddressClear;
45
- payload?: null;
46
- localIndex?: string;
47
- };
48
- export type FormHomeAddressStateReducerInterface = (state: FormHomeAddressStateInterface, action: FormHomeAddressStateActionType) => FormHomeAddressStateInterface;
49
- export interface FormHomeAddressHookInterface {
50
- addressState: FormHomeAddressStateInterface;
51
- dispatchAddressState: (props: FormHomeAddressStateActionType) => void;
52
- }
@@ -1,3 +0,0 @@
1
- import { FormHomeAddressStateInterface } from './interfaces';
2
- export declare const getLocalAddresss: (localIndex?: string | undefined) => FormHomeAddressStateInterface;
3
- export declare const setLocalAddresss: (localIndex: string | undefined, state: FormHomeAddressStateInterface) => FormHomeAddressStateInterface;
@@ -1,2 +0,0 @@
1
- import { FormHomeAddressStateReducerInterface } from './interfaces';
2
- export declare const formHomeAddressStateReducer: FormHomeAddressStateReducerInterface;