Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | import {Action, ActionCreator} from "redux"; |
| 2 | |
| 3 | export const LOAD_PRODUCT_FAMILIES = '[PRODUCT_FAMILIES] Load'; |
| 4 | |
| 5 | export const LOAD_LCP_TENANT = '[LCP_TENANT] Load'; |
| 6 | |
| 7 | export const LOAD_AIC_ZONES = '[AIC_ZONES] Load'; |
| 8 | |
| 9 | export const LOAD_CATEGORY_PARAMETERS = '[LOAD_CATEGORY_PARAMETERS] Load'; |
| 10 | |
| 11 | export const LOAD_SERVICE_MDOEL_BY_UUID = '[LOAD_SERVICE_MDOEL_BY_UUID] Load'; |
| 12 | |
| 13 | export const LOAD_NETWORK_ACCORDING_TO_NF = '[LOAD_NETWORK_ACCORDING_TO_NF] Load' |
| 14 | |
| 15 | export const LOAD_USER_ID = '[LOAD_USER_ID] Load' |
| 16 | |
| 17 | |
| 18 | export interface LoadProductFamiliesAction extends Action {} |
| 19 | |
| 20 | interface LoadLcpTenant extends Action {} |
| 21 | |
| 22 | interface LoadAicZones extends Action {} |
| 23 | |
| 24 | interface LoadCategoryParameters extends Action {} |
| 25 | |
| 26 | interface LoadServiceModelByUuid extends Action {} |
| 27 | |
| 28 | interface LoadNetworkAccordingToNetworkCF extends Action{} |
| 29 | |
| 30 | interface LoadUserId extends Action{} |
| 31 | |
| 32 | |
| 33 | export const loadServiceAccordingToUuid : ActionCreator<LoadServiceModelByUuid> = |
| 34 | (uuid : string) =>({ |
| 35 | type : LOAD_SERVICE_MDOEL_BY_UUID, |
| 36 | modelId : uuid |
| 37 | }) |
| 38 | |
| 39 | |
| 40 | export const loadProductFamiliesAction: ActionCreator<LoadProductFamiliesAction> = |
| 41 | () => ({ |
| 42 | type: LOAD_PRODUCT_FAMILIES, |
| 43 | }); |
| 44 | |
| 45 | |
| 46 | export const loadUserId: ActionCreator<LoadUserId> = |
| 47 | () => ({ |
| 48 | type: LOAD_USER_ID, |
| 49 | }); |
| 50 | |
| 51 | |
| 52 | export const loadLcpTenant: ActionCreator<LoadLcpTenant> = |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame^] | 53 | (subscriberId : string, serviceType : string) => ({ |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 54 | type: LOAD_LCP_TENANT, |
Ittay Stern | 6f900cc | 2018-08-29 17:01:32 +0300 | [diff] [blame^] | 55 | subscriberId : subscriberId, |
| 56 | serviceType : serviceType |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 57 | }); |
| 58 | |
| 59 | |
| 60 | export const loadAicZones: ActionCreator<LoadAicZones> = |
| 61 | () => ({ |
| 62 | type: LOAD_AIC_ZONES, |
| 63 | }); |
| 64 | |
| 65 | export const loadCategoryParameters: ActionCreator<LoadCategoryParameters> = |
| 66 | () => ({ |
| 67 | type: LOAD_CATEGORY_PARAMETERS, |
| 68 | }); |
| 69 | |
| 70 | |
| 71 | export const loadAaiNetworkAccordingToNetworkCF: ActionCreator<LoadNetworkAccordingToNetworkCF> = |
| 72 | (networkFunction,cloudOwner,cloudRegionId) => ({ |
| 73 | type: LOAD_NETWORK_ACCORDING_TO_NF, |
| 74 | networkFunctions: networkFunction, |
| 75 | cloudOwner: cloudOwner, |
| 76 | cloudRegionId: cloudRegionId |
| 77 | }); |