blob: 0f4fde2ff43408d0a2e695bbc0bc869c3cf0fce0 [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001/**
2 * Created by obarda on 2/18/2016.
3 */
4
5export let DEFAULT_ICON = 'defaulticon';
6export let CP_END_POINT = 'CpEndPoint';
7export let CHANGE_COMPONENT_CSAR_VERSION_FLAG = 'changeComponentCsarVersion';
8
9export class ComponentType {
10 static SERVICE = 'SERVICE';
11 static RESOURCE = 'RESOURCE';
12 static PRODUCT = 'PRODUCT';
13}
14
15export class ServerTypeUrl {
16 static RESOURCES = 'resources/';
17 static SERVICES = 'services/';
18 static PRODUCTS = 'product/';
19}
20
21export class ResourceType {
22 static VF = 'VF';
23 static VL = 'VL';
24 static CP = 'CP';
25 static VFC = 'VFC';
26 static VFCMT = 'VFCMT';
Tal Gitelman153a3582017-07-03 20:16:55 +030027 static PNF = 'PNF';
Michael Landoed64b5e2017-06-09 03:19:04 +030028}
29
30export class ComponentState {
31 static CERTIFICATION_IN_PROGRESS = 'CERTIFICATION_IN_PROGRESS';
32 static CERTIFIED = 'CERTIFIED';
33 static NOT_CERTIFIED_CHECKOUT = 'NOT_CERTIFIED_CHECKOUT';
34 static NOT_CERTIFIED_CHECKIN = 'NOT_CERTIFIED_CHECKIN';
35 static READY_FOR_CERTIFICATION = 'READY_FOR_CERTIFICATION';
36}
37
38export class DistributionStatus {
39 DISTRIBUTION_NOT_APPROVED = 'DISTRIBUTION_NOT_APPROVED';
40 DISTRIBUTION_APPROVED = 'DISTRIBUTION_APPROVED';
41 DISTRIBUTED = 'DISTRIBUTED';
42 DISTRIBUTION_REJECTED = 'DISTRIBUTION_REJECTED';
43}
44
45export class ArtifactGroupType {
46 static DEPLOYMENT = "DEPLOYMENT";
47 static INFORMATION = "INFORMATIONAL";
48 static SERVICE_API = "SERVICE_API";
49}
50
51export class ArtifactType {
52 static HEAT = "HEAT";
53 static HEAT_VOL = "HEAT_VOL";
54 static HEAT_NET = "HEAT_NET";
55 static VF_LICENSE = "VF_LICENSE";
56 static VENDOR_LICENSE = "VENDOR_LICENSE";
57 static THIRD_PARTY_RESERVED_TYPES = {
58 WORKFLOW: "WORKFLOW",
59 NETWORK_CALL_FLOW: "NETWORK_CALL_FLOW",
60 AAI_SERVICE_MODEL: "AAI_SERVICE_MODEL",
61 AAI_VF_MODEL: "AAI_VF_MODEL",
62 AAI_VF_MODULE_MODEL: "AAI_VF_MODULE_MODEL",
63 AAI_VF_INSTANCE_MODEL: "AAI_VF_INSTANCE_MODEL"
64 };
65 static TOSCA = {TOSCA_TEMPLATE: "TOSCA_TEMPLATE", TOSCA_CSAR: "TOSCA_CSAR"};
66}
67
68export class SEVERITY {
69 public static DEBUG = 'DEBUG';
70 public static INFO = 'INFO';
71 public static WARNING = 'WARNING';
72 public static ERROR = 'ERROR';
73}
74
75export class PROPERTY_TYPES {
76 public static STRING = 'string';
77 public static INTEGER = 'integer';
78 public static FLOAT = 'float';
79 public static BOOLEAN = 'boolean';
80 public static JSON = 'json';
81 public static MAP = 'map';
82 public static LIST = 'list';
Tal Gitelman153a3582017-07-03 20:16:55 +030083 public static SCALAR = 'scalar-unit';
84 public static SCALAR_FREQUENCY = 'scalar-unit.frequency';
85 public static SCALAR_SIZE = 'scalar-unit.size';
86 public static SCALAR_TIME = 'scalar-unit.time';
Michael Landoed64b5e2017-06-09 03:19:04 +030087}
88
89export class SOURCES {
90 public static A_AND_AI = 'A&AI';
91 public static ORDER = 'Order';
92 public static RUNTIME = 'Runtime';
93}
94
95export class PROPERTY_DATA {
Tal Gitelman153a3582017-07-03 20:16:55 +030096 public static TYPES = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT, PROPERTY_TYPES.BOOLEAN, PROPERTY_TYPES.JSON, PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME, PROPERTY_TYPES.LIST, PROPERTY_TYPES.MAP];
97 public static SIMPLE_TYPES = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT, PROPERTY_TYPES.BOOLEAN, PROPERTY_TYPES.JSON, PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME];
Michael Landoed64b5e2017-06-09 03:19:04 +030098 public static ROOT_DATA_TYPE = "tosca.datatypes.Root";
Michael Landob3d48982017-06-11 14:22:02 +030099 public static OPENECOMP_ROOT = "org.openecomp.datatypes.Root";
100 public static SUPPLEMENTAL_DATA = "supplemental_data";
Michael Landoed64b5e2017-06-09 03:19:04 +0300101 public static SOURCES = [SOURCES.A_AND_AI, SOURCES.ORDER, SOURCES.RUNTIME];
102}
103
104export class PROPERTY_VALUE_CONSTRAINTS {
Michael Landob3d48982017-06-11 14:22:02 +0300105 public static MAX_LENGTH = 2500;
Michael Landoed64b5e2017-06-09 03:19:04 +0300106 public static JSON_MAX_LENGTH = 4096;
107}
108
109export class Role {
110 public static ADMIN = 'ADMIN';
111 public static DESIGNER = 'DESIGNER';
112 public static PRODUCT_STRATEGIST = 'PRODUCT_STRATEGIST';
113 public static PRODUCT_MANAGER = 'PRODUCT_MANAGER';
114 public static TESTER = 'TESTER';
115 public static OPS = 'OPS';
116 public static GOVERNOR = 'GOVERNOR';
117}
118
119export enum FormState{
120 CREATE,
121 UPDATE,
122 IMPORT,
123 VIEW
124}
125
126export class WorkspaceMode {
127 public static CREATE = 'create';
128 public static EDIT = 'edit';
129 public static IMPORT = 'import';
130 public static VIEW = 'view';
131}
132
133export class ImagesUrl {
134 public static RESOURCE_ICONS = '/assets/styles/images/resource-icons/';
135 public static SERVICE_ICONS = '/assets/styles/images/service-icons/';
136 public static SELECTED_UCPE_INSTANCE = '/assets/styles/images/resource-icons/selectedUcpeInstance.png';
137 public static SELECTED_CP_INSTANCE = '/assets/styles/images/resource-icons/selectedCPInstance.png';
138 public static SELECTED_VL_INSTANCE = '/assets/styles/images/resource-icons/selectedVLInstance.png';
139 public static CANVAS_PLUS_ICON = '/assets/styles/images/resource-icons/canvasPlusIcon.png';
140 public static MODULE_ICON = '/assets/styles/images/resource-icons/module.png';
141 public static OPEN_MODULE_ICON = '/assets/styles/images/resource-icons/openModule.png';
142 public static OPEN_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/openModuleHover.png';
143 public static CLOSE_MODULE_ICON = '/assets/styles/images/resource-icons/closeModule.png';
144 public static CLOSE_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/closeModuleHover.png';
145}
146
147export class ModalType {
148 static STANDARD = 'standard';
149 static ERROR = 'error';
150 static ALERT = 'alert';
151}
152
153export class GraphColors {
154 public static NOT_CERTIFIED_LINK = 'rgb(218,31,61)';
155 public static VL_LINK = 'rgb(216,216,216)';
156 public static ACTIVE_LINK = '#30bdf2';
157 public static BASE_LINK = 'rgb(55,55,55)';
158 public static NODE_BACKGROUND_COLOR = 'rgba(46, 162, 157, 0.24)';
159 public static NODE_SHADOW_COLOR = 'rgba(198, 230, 228, 0.7)';
160 public static NODE_OVERLAPPING_BACKGROUND_COLOR = 'rgba(179, 10, 60, 0.24)';
161 public static NODE_OVERLAPPING_SHADOW_COLOR = 'rgba(236, 194, 206, 0.7)';
162 public static NODE_UCPE_CP = '#9063cd';
163 public static NODE_UCPE = '#fbfbfb';
164 public static NODE_SELECTED_BORDER_COLOR = '#30bdf2';
165}
166export class GraphTransactionLogText {
167 public static REMOVE_TEMP_LINK = "remove tempLink";
168 public static DELETE_LINK = "delete link";
169 public static ADD_LINK = "delete link";
170 public static ADD_NODE = "adding node";
171}
172
173export class GraphUIObjects {
174 public static LINK_MENU_HEIGHT = 420;
175 public static TOP_HEADER_HEIGHT = 200;
176 public static TOOLTIP_OFFSET_X = 50;
177 public static TOOLTIP_OFFSET_Y = 145;
178 public static TOOLTIP_LINK_OFFSET_X = 35;
179 public static TOOLTIP_LINK_OFFSET_Y = 75;
180 public static MENU_LINK_VL_HEIGHT_OFFSET = 250;
181 public static MENU_LINK_VL_WIDTH_OFFSET = 200;
182 public static MENU_LINK_SIMPLE_HEIGHT_OFFSET = 180;
183 public static MENU_LINK_SIMPLE_WIDTH_OFFSET = 130;
184 public static DIAGRAM_RIGHT_WIDTH_OFFSET = 248;
185 public static DIAGRAM_HEADER_OFFSET = 103;
186 public static DIAGRAM_PALETTE_WIDTH_OFFSET = 247;
187 // public static COMPOSITION_HEADER_OFFSET = 50;
188 // public static COMPOSITION_NODE_MENU_WIDTH = 230;
189 // public static COMPOSITION_NODE_MENU_HEIGHT = 200;
190 // public static COMPOSITION_RIGHT_PANEL_OFFSET = 300;
191}
192
193
194export class States {
195 public static WORKSPACE_GENERAL = 'workspace.general';
196 public static WORKSPACE_ICONS = 'workspace.icons';
197 public static WORKSPACE_ACTIVITY_LOG = 'workspace.activity_log';
198 public static WORKSPACE_DEPLOYMENT_ARTIFACTS = 'workspace.deployment_artifacts';
199 public static WORKSPACE_PROPERTIES = 'workspace.properties';
200 public static WORKSPACE_SERVICE_INPUTS = 'workspace.service_inputs';
201 public static WORKSPACE_RESOURCE_INPUTS = 'workspace.resource_inputs';
202 public static WORKSPACE_ATTRIBUTES = 'workspace.attributes';
203 public static WORKSPACE_HIERARCHY = 'workspace.hierarchy';
204 public static WORKSPACE_INFORMATION_ARTIFACTS = 'workspace.information_artifacts';
205 public static WORKSPACE_TOSCA_ARTIFACTS = 'workspace.tosca_artifacts';
206 public static WORKSPACE_COMPOSITION = 'workspace.composition';
207 public static WORKSPACE_NETWORK_CALL_FLOW = 'workspace.network_call_flow';
208 public static WORKSPACE_MANAGEMENT_WORKFLOW = 'workspace.management_workflow';
209 public static WORKSPACE_DEPLOYMENT = 'workspace.deployment';
210 public static WORKSPACE_DISTRIBUTION = 'workspace.distribution';
211 public static WORKSPACE_PROPERTIES_ASSIGNMENT = 'workspace.properties_assignment';
212 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES = 'workspace.reqAndCap';
213 public static WORKSPACE_NG2 = 'workspace.ng2';
214}
215
216export class EVENTS {
217 static RESOURCE_LEFT_PALETTE_UPDATE_EVENT = "resourceLeftPanelUpdateEvent";
Tal Gitelman153a3582017-07-03 20:16:55 +0300218 static RESOURCE_PNF_LEFT_PALETTE_UPDATE_EVENT = "resourcePNFLeftPanelUpdateEvent";
Michael Landoed64b5e2017-06-09 03:19:04 +0300219 static SERVICE_LEFT_PALETTE_UPDATE_EVENT = "serviceLeftPanelUpdateEvent";
220 static PRODUCT_LEFT_PALETTE_UPDATE_EVENT = "productLeftPanelUdateEvent";
221 static VL_LEFT_PALETTE_UPDATE_EVENT = "vlLeftPanelUdateEvent";
222 static ON_CSAR_LOADING = "onCsarLoading";
223 static DOWNLOAD_ARTIFACT_FINISH_EVENT = "downloadArtifactFinishEvent";
224 static ON_WORKSPACE_SAVE_BUTTON_CLICK = "onWorkspaceSaveButtonClick";
225 static ON_WORKSPACE_SAVE_BUTTON_SUCCESS = "onWorkspaceSaveButtonSuccess";
226 static ON_WORKSPACE_SAVE_BUTTON_ERROR = "onWorkspaceSaveButtonError";
Michael Landob3d48982017-06-11 14:22:02 +0300227 static ON_CHECKOUT = "onCheckout";
Michael Landoed64b5e2017-06-09 03:19:04 +0300228
229 //Loader events
230 static SHOW_LOADER_EVENT = "showLoaderEvent";
231 static HIDE_LOADER_EVENT = "hideLoaderEvent";
232}
233
234
235export class UNIQUE_GROUP_PROPERTIES_NAME {
236 public static MIN_VF_MODULE_INSTANCES = 'min_vf_module_instances';
237 public static MAX_VF_MODULE_INSTANCES = 'max_vf_module_instances';
238 public static INITIAL_COUNT = 'initial_count';
239 public static IS_BASE = 'isBase';
240 public static VF_MODULE_TYPE = 'vf_module_type';
241 public static VF_MODULE_LABEL = 'vf_module_label';
242 public static VF_MODULE_DESCRIPTION = 'vf_module_description';
243 public static VOLUME_GROUP = 'volume_group';
244}
245
246
247export class GRAPH_EVENTS {
248 static ON_COMPOSITION_GRAPH_DATA_LOADED = 'onCompositionGraphDataLoaded';
249 static ON_DEPLOYMENT_GRAPH_DATA_LOADED = 'onDeploymentGraphDataLoaded';
250 static ON_NODE_SELECTED = "onNodeSelected";
251 static ON_GRAPH_BACKGROUND_CLICKED = "onGraphBackgroundClicked";
252 static ON_PALETTE_COMPONENT_HOVER_IN = 'onPaletteComponentHoverIn';
253 static ON_PALETTE_COMPONENT_HOVER_OUT = 'onPaletteComponentHoverOut';
254 static ON_PALETTE_COMPONENT_DRAG_START = 'onPaletteComponentDragStart';
255 static ON_PALETTE_COMPONENT_DRAG_ACTION = 'onPaletteComponentDragAction';
256 static ON_COMPONENT_INSTANCE_NAME_CHANGED = 'onComponentInstanceNameChanged';
257 static ON_DELETE_COMPONENT_INSTANCE = 'onDeleteComponentInstance';
258 static ON_DELETE_MULTIPLE_COMPONENTS = 'onDeleteMultipleComponents';
259 static ON_DELETE_EDGE = 'onDeleteEdge';
260 static ON_INSERT_NODE_TO_UCPE = 'onInsertNodeToUCPE';
261 static ON_REMOVE_NODE_FROM_UCPE = 'onRemoveNodeFromUCPE';
262 static ON_VERSION_CHANGED = 'onVersionChanged';
263 static ON_CREATE_COMPONENT_INSTANCE = 'onCreateComponentInstance';
264}
265
266
267export class COMPONENT_FIELDS {
268 static COMPONENT_INSTANCES_PROPERTIES = "componentInstancesProperties";
269 static COMPONENT_INSTANCES_ATTRIBUTES = "componentInstancesAttributes";
270 static COMPONENT_ATTRIBUTES = "attributes";
271 static COMPONENT_INSTANCES = "componentInstances";
272 static COMPONENT_INSTANCES_RELATION = "componentInstancesRelations";
273 static COMPONENT_INPUTS = "inputs";
274 static COMPONENT_METADATA = "metadata";
275 static COMPONENT_DEPLOYMENT_ARTIFACTS = "deploymentArtifacts";
276 static COMPONENT_INFORMATIONAL_ARTIFACTS = "artifacts";
277 static COMPONENT_PROPERTIES = "properties";
278 static COMPONENT_CAPABILITIES = "capabilities";
279 static COMPONENT_REQUIREMENTS = "requirements";
280 static COMPONENT_TOSCA_ARTIFACTS = "toscaArtifacts";
281 static COMPONENT_GROUPS = "groups";
282
283}
284export class API_QUERY_PARAMS {
285 static INCLUDE = "include";
286}