blob: dc234bd614958062813c549c874655760280743a [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> =
Ittay Stern6f900cc2018-08-29 17:01:32 +030053 (subscriberId : string, serviceType : string) => ({
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030054 type: LOAD_LCP_TENANT,
Ittay Stern6f900cc2018-08-29 17:01:32 +030055 subscriberId : subscriberId,
56 serviceType : serviceType
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030057 });
58
59
60export const loadAicZones: ActionCreator<LoadAicZones> =
61 () => ({
62 type: LOAD_AIC_ZONES,
63 });
64
65export const loadCategoryParameters: ActionCreator<LoadCategoryParameters> =
66 () => ({
67 type: LOAD_CATEGORY_PARAMETERS,
68 });
69
70
71export 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 });