blob: 649fb145693f18ab01556fbe991e5ed9f97ee224 [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001import {Action, ActionCreator} from "redux";
2
3export const LOAD_PRODUCT_FAMILIES = '[PRODUCT_FAMILIES] Load';
4
5export const LOAD_LCP_TENANT = '[LCP_TENANT] Load';
6
7export const LOAD_AIC_ZONES = '[AIC_ZONES] Load';
8
9export const LOAD_CATEGORY_PARAMETERS = '[LOAD_CATEGORY_PARAMETERS] Load';
10
11export const LOAD_SERVICE_MDOEL_BY_UUID = '[LOAD_SERVICE_MDOEL_BY_UUID] Load';
12
13export const LOAD_NETWORK_ACCORDING_TO_NF = '[LOAD_NETWORK_ACCORDING_TO_NF] Load'
14
15export const LOAD_USER_ID = '[LOAD_USER_ID] Load'
16
17
18export interface LoadProductFamiliesAction extends Action {}
19
20interface LoadLcpTenant extends Action {}
21
22interface LoadAicZones extends Action {}
23
24interface LoadCategoryParameters extends Action {}
25
26interface LoadServiceModelByUuid extends Action {}
27
28interface LoadNetworkAccordingToNetworkCF extends Action{}
29
30interface LoadUserId extends Action{}
31
32
33export const loadServiceAccordingToUuid : ActionCreator<LoadServiceModelByUuid> =
34 (uuid : string) =>({
35 type : LOAD_SERVICE_MDOEL_BY_UUID,
36 modelId : uuid
37 })
38
39
40export const loadProductFamiliesAction: ActionCreator<LoadProductFamiliesAction> =
41 () => ({
42 type: LOAD_PRODUCT_FAMILIES,
43 });
44
45
46export 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
58export const loadAicZones: ActionCreator<LoadAicZones> =
59 () => ({
60 type: LOAD_AIC_ZONES,
61 });
62
63export const loadCategoryParameters: ActionCreator<LoadCategoryParameters> =
64 () => ({
65 type: LOAD_CATEGORY_PARAMETERS,
66 });
67
68
69export 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 });