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> = |
| 53 | () => ({ |
| 54 | type: LOAD_LCP_TENANT, |
| 55 | }); |
| 56 | |
| 57 | |
| 58 | export const loadAicZones: ActionCreator<LoadAicZones> = |
| 59 | () => ({ |
| 60 | type: LOAD_AIC_ZONES, |
| 61 | }); |
| 62 | |
| 63 | export const loadCategoryParameters: ActionCreator<LoadCategoryParameters> = |
| 64 | () => ({ |
| 65 | type: LOAD_CATEGORY_PARAMETERS, |
| 66 | }); |
| 67 | |
| 68 | |
| 69 | export const loadAaiNetworkAccordingToNetworkCF: ActionCreator<LoadNetworkAccordingToNetworkCF> = |
| 70 | (networkFunction,cloudOwner,cloudRegionId) => ({ |
| 71 | type: LOAD_NETWORK_ACCORDING_TO_NF, |
| 72 | networkFunctions: networkFunction, |
| 73 | cloudOwner: cloudOwner, |
| 74 | cloudRegionId: cloudRegionId |
| 75 | }); |