blob: 8ad8db2b69a39a36fb1b2295168d9cdcdfb1a83f [file] [log] [blame]
Michael Landodd603392017-07-12 00:54:52 +03001/*-
2 * ============LICENSE_START=======================================================
3 * SDC
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
Piotr Darosz2c25cba2019-03-27 15:25:50 +01006 * Modifications Copyright (C) 2019 Nokia. All rights reserved.
Michael Landodd603392017-07-12 00:54:52 +03007 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
Idan Amitcb1095e2018-01-22 20:55:42 +020011 *
Michael Landodd603392017-07-12 00:54:52 +030012 * http://www.apache.org/licenses/LICENSE-2.0
Idan Amitcb1095e2018-01-22 20:55:42 +020013 *
Michael Landodd603392017-07-12 00:54:52 +030014 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
20 */
21
Michael Landoed64b5e2017-06-09 03:19:04 +030022/**
23 * Created by obarda on 2/18/2016.
24 */
25
26export let DEFAULT_ICON = 'defaulticon';
27export let CP_END_POINT = 'CpEndPoint';
28export let CHANGE_COMPONENT_CSAR_VERSION_FLAG = 'changeComponentCsarVersion';
Michael Lando5b593492018-07-29 16:13:45 +030029export let PREVIOUS_CSAR_COMPONENT = 'previousCsarComponent'
30
31
32export class GeneralStatus {
33 static OK = 'OK';
34 static GENERAL_ERROR = 'GENERAL_ERROR';
35}
Michael Landoed64b5e2017-06-09 03:19:04 +030036
37export class ComponentType {
38 static SERVICE = 'SERVICE';
39 static RESOURCE = 'RESOURCE';
Tal Gitelman51d50f02017-12-10 18:55:03 +020040 static SERVICE_PROXY = 'ServiceProxy'
Michael Landoed64b5e2017-06-09 03:19:04 +030041}
42
43export class ServerTypeUrl {
44 static RESOURCES = 'resources/';
45 static SERVICES = 'services/';
ys969316a9fce2020-01-19 13:50:02 +020046
47 public static toServerTypeUrl(componentType: ComponentType) : string {
48 if (componentType == ComponentType.SERVICE) {
49 return ServerTypeUrl.SERVICES.slice(0,-1);
50 } else if (componentType == ComponentType.RESOURCE) {
51 return ServerTypeUrl.RESOURCES.slice(0,-1);
52 } else {
53 return undefined;
54 }
55 }
Michael Landoed64b5e2017-06-09 03:19:04 +030056}
57
ys969316a9fce2020-01-19 13:50:02 +020058
59
Michael Landoed64b5e2017-06-09 03:19:04 +030060export class ResourceType {
61 static VF = 'VF';
62 static VL = 'VL';
63 static CP = 'CP';
64 static VFC = 'VFC';
65 static VFCMT = 'VFCMT';
Tal Gitelman153a3582017-07-03 20:16:55 +030066 static PNF = 'PNF';
Michael Lando75aacbb2017-07-17 21:12:03 +030067 static CVFC = 'CVFC';
Tal Gitelman51d50f02017-12-10 18:55:03 +020068 static CONFIGURATION = 'Configuration';
Michael Landoa5445102018-03-04 14:53:33 +020069 static CR = 'CR';
Michael Landoed64b5e2017-06-09 03:19:04 +030070}
71
ys969316a9fce2020-01-19 13:50:02 +020072export class SdcElementType {
73 static GROUP = 'GROUP';
74 static POLICY = 'POLICY';
75 static SERVICE_PROXY = 'ServiceProxy'
76}
Michael Landoed64b5e2017-06-09 03:19:04 +030077export class ComponentState {
78 static CERTIFICATION_IN_PROGRESS = 'CERTIFICATION_IN_PROGRESS';
79 static CERTIFIED = 'CERTIFIED';
80 static NOT_CERTIFIED_CHECKOUT = 'NOT_CERTIFIED_CHECKOUT';
81 static NOT_CERTIFIED_CHECKIN = 'NOT_CERTIFIED_CHECKIN';
82 static READY_FOR_CERTIFICATION = 'READY_FOR_CERTIFICATION';
83}
84
85export class DistributionStatus {
86 DISTRIBUTION_NOT_APPROVED = 'DISTRIBUTION_NOT_APPROVED';
87 DISTRIBUTION_APPROVED = 'DISTRIBUTION_APPROVED';
88 DISTRIBUTED = 'DISTRIBUTED';
89 DISTRIBUTION_REJECTED = 'DISTRIBUTION_REJECTED';
90}
91
92export class ArtifactGroupType {
93 static DEPLOYMENT = "DEPLOYMENT";
94 static INFORMATION = "INFORMATIONAL";
95 static SERVICE_API = "SERVICE_API";
ys969316a9fce2020-01-19 13:50:02 +020096 static TOSCA = "TOSCA";
Michael Landoed64b5e2017-06-09 03:19:04 +030097}
98
99export class ArtifactType {
ys969316a9fce2020-01-19 13:50:02 +0200100
101 static DEPLOYMENT = "DEPLOYMENT";
102 static INFORMATION = "INFORMATIONAL";
103 static SERVICE_API = "SERVICE_API";
104 static HEAT_ENV = "HEAT_ENV";
Michael Landoed64b5e2017-06-09 03:19:04 +0300105 static HEAT = "HEAT";
106 static HEAT_VOL = "HEAT_VOL";
107 static HEAT_NET = "HEAT_NET";
108 static VF_LICENSE = "VF_LICENSE";
Tomasz Golabekc5ef9802020-02-19 16:46:44 +0100109 static PM_DICTIONARY = "PM_DICTIONARY";
Michael Landoed64b5e2017-06-09 03:19:04 +0300110 static VENDOR_LICENSE = "VENDOR_LICENSE";
111 static THIRD_PARTY_RESERVED_TYPES = {
112 WORKFLOW: "WORKFLOW",
113 NETWORK_CALL_FLOW: "NETWORK_CALL_FLOW",
114 AAI_SERVICE_MODEL: "AAI_SERVICE_MODEL",
115 AAI_VF_MODEL: "AAI_VF_MODEL",
116 AAI_VF_MODULE_MODEL: "AAI_VF_MODULE_MODEL",
117 AAI_VF_INSTANCE_MODEL: "AAI_VF_INSTANCE_MODEL"
118 };
119 static TOSCA = {TOSCA_TEMPLATE: "TOSCA_TEMPLATE", TOSCA_CSAR: "TOSCA_CSAR"};
Piotr Darosz2c25cba2019-03-27 15:25:50 +0100120 static VES_EVENTS = "VES_EVENTS";
Michael Landoed64b5e2017-06-09 03:19:04 +0300121}
122
123export class SEVERITY {
124 public static DEBUG = 'DEBUG';
125 public static INFO = 'INFO';
126 public static WARNING = 'WARNING';
127 public static ERROR = 'ERROR';
128}
129
130export class PROPERTY_TYPES {
131 public static STRING = 'string';
132 public static INTEGER = 'integer';
133 public static FLOAT = 'float';
134 public static BOOLEAN = 'boolean';
135 public static JSON = 'json';
136 public static MAP = 'map';
137 public static LIST = 'list';
Tal Gitelman153a3582017-07-03 20:16:55 +0300138 public static SCALAR = 'scalar-unit';
139 public static SCALAR_FREQUENCY = 'scalar-unit.frequency';
140 public static SCALAR_SIZE = 'scalar-unit.size';
141 public static SCALAR_TIME = 'scalar-unit.time';
Michael Landoed64b5e2017-06-09 03:19:04 +0300142}
143
144export class SOURCES {
145 public static A_AND_AI = 'A&AI';
146 public static ORDER = 'Order';
147 public static RUNTIME = 'Runtime';
148}
149
150export class PROPERTY_DATA {
Tal Gitelman153a3582017-07-03 20:16:55 +0300151 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];
152 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];
miriamec2ce9142019-02-13 15:17:26 +0200153 public static SIMPLE_TYPES_COMPARABLE = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT];
Tal Gitelman51d50f02017-12-10 18:55:03 +0200154 public static SCALAR_TYPES = [PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME];
Michael Landoed64b5e2017-06-09 03:19:04 +0300155 public static ROOT_DATA_TYPE = "tosca.datatypes.Root";
Michael Landob3d48982017-06-11 14:22:02 +0300156 public static OPENECOMP_ROOT = "org.openecomp.datatypes.Root";
157 public static SUPPLEMENTAL_DATA = "supplemental_data";
Michael Landoed64b5e2017-06-09 03:19:04 +0300158 public static SOURCES = [SOURCES.A_AND_AI, SOURCES.ORDER, SOURCES.RUNTIME];
159}
160
161export class PROPERTY_VALUE_CONSTRAINTS {
Michael Landob3d48982017-06-11 14:22:02 +0300162 public static MAX_LENGTH = 2500;
Michael Landoed64b5e2017-06-09 03:19:04 +0300163 public static JSON_MAX_LENGTH = 4096;
164}
165
166export class Role {
167 public static ADMIN = 'ADMIN';
168 public static DESIGNER = 'DESIGNER';
Michael Landoed64b5e2017-06-09 03:19:04 +0300169 public static TESTER = 'TESTER';
170 public static OPS = 'OPS';
171 public static GOVERNOR = 'GOVERNOR';
172}
173
174export enum FormState{
175 CREATE,
176 UPDATE,
177 IMPORT,
178 VIEW
179}
180
Michael Lando5b593492018-07-29 16:13:45 +0300181export class instantiationType {
182 public static MACRO = 'Macro';
183 public static A_LA_CARTE = 'A-la-carte';
184}
185
Michael Landoed64b5e2017-06-09 03:19:04 +0300186export class WorkspaceMode {
187 public static CREATE = 'create';
188 public static EDIT = 'edit';
189 public static IMPORT = 'import';
190 public static VIEW = 'view';
191}
192
193export class ImagesUrl {
194 public static RESOURCE_ICONS = '/assets/styles/images/resource-icons/';
195 public static SERVICE_ICONS = '/assets/styles/images/service-icons/';
Tal Gitelman51d50f02017-12-10 18:55:03 +0200196 public static SERVICE_PROXY_ICONS = '/assets/styles/images/service-proxy-icons/';
Michael Landoed64b5e2017-06-09 03:19:04 +0300197 public static SELECTED_UCPE_INSTANCE = '/assets/styles/images/resource-icons/selectedUcpeInstance.png';
198 public static SELECTED_CP_INSTANCE = '/assets/styles/images/resource-icons/selectedCPInstance.png';
199 public static SELECTED_VL_INSTANCE = '/assets/styles/images/resource-icons/selectedVLInstance.png';
200 public static CANVAS_PLUS_ICON = '/assets/styles/images/resource-icons/canvasPlusIcon.png';
Michael Lando5b593492018-07-29 16:13:45 +0300201 public static CANVAS_TAG_ICON = '/assets/styles/images/canvas-tagging-icons/indication.svg';
202 public static CANVAS_POLICY_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/policy_added.svg';
203 public static CANVAS_GROUP_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/group_added.svg';
Michael Landoed64b5e2017-06-09 03:19:04 +0300204 public static MODULE_ICON = '/assets/styles/images/resource-icons/module.png';
205 public static OPEN_MODULE_ICON = '/assets/styles/images/resource-icons/openModule.png';
206 public static OPEN_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/openModuleHover.png';
207 public static CLOSE_MODULE_ICON = '/assets/styles/images/resource-icons/closeModule.png';
208 public static CLOSE_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/closeModuleHover.png';
209}
210
Michael Lando5b593492018-07-29 16:13:45 +0300211
212export class CanvasHandleTypes {
213 public static ADD_EDGE = 'add-edge';
214 public static TAG_AVAILABLE = 'tag-available';
215 public static TAGGED_POLICY = 'tagged-policy';
216 public static TAGGED_GROUP = 'tagged-group';
217}
218
Michael Landoed64b5e2017-06-09 03:19:04 +0300219export class ModalType {
220 static STANDARD = 'standard';
221 static ERROR = 'error';
222 static ALERT = 'alert';
223}
224
Avi Zivf5854fd2017-07-31 15:50:46 +0300225export class ServerErrors {
226 static ERROR_TITLE = 'Error';
227 static DEFAULT_ERROR = 'Error getting response from server';
228 static MESSAGE_ERROR = 'Wrong error format from server';
ys969316a9fce2020-01-19 13:50:02 +0200229 static DOWNLOAD_ERROR = 'Download error';
Avi Zivf5854fd2017-07-31 15:50:46 +0300230}
231
Michael Landoed64b5e2017-06-09 03:19:04 +0300232export class GraphColors {
233 public static NOT_CERTIFIED_LINK = 'rgb(218,31,61)';
234 public static VL_LINK = 'rgb(216,216,216)';
235 public static ACTIVE_LINK = '#30bdf2';
236 public static BASE_LINK = 'rgb(55,55,55)';
237 public static NODE_BACKGROUND_COLOR = 'rgba(46, 162, 157, 0.24)';
238 public static NODE_SHADOW_COLOR = 'rgba(198, 230, 228, 0.7)';
239 public static NODE_OVERLAPPING_BACKGROUND_COLOR = 'rgba(179, 10, 60, 0.24)';
240 public static NODE_OVERLAPPING_SHADOW_COLOR = 'rgba(236, 194, 206, 0.7)';
241 public static NODE_UCPE_CP = '#9063cd';
242 public static NODE_UCPE = '#fbfbfb';
243 public static NODE_SELECTED_BORDER_COLOR = '#30bdf2';
Michael Landoa5445102018-03-04 14:53:33 +0200244 public static SERVICE_PATH_LINK = '#70208a';
Michael Landoed64b5e2017-06-09 03:19:04 +0300245}
246export class GraphTransactionLogText {
247 public static REMOVE_TEMP_LINK = "remove tempLink";
248 public static DELETE_LINK = "delete link";
249 public static ADD_LINK = "delete link";
250 public static ADD_NODE = "adding node";
251}
252
253export class GraphUIObjects {
Idan Amitcb1095e2018-01-22 20:55:42 +0200254 public static HANDLE_SIZE = 18;
255 public static NODE_OVERLAP_MIN_SIZE = 30;
Michael Lando9db40522017-07-22 17:10:02 +0300256 public static DEFAULT_RESOURCE_WIDTH = 65;
257 public static SMALL_RESOURCE_WIDTH = 21;
Michael Landoed64b5e2017-06-09 03:19:04 +0300258 public static LINK_MENU_HEIGHT = 420;
259 public static TOP_HEADER_HEIGHT = 200;
260 public static TOOLTIP_OFFSET_X = 50;
261 public static TOOLTIP_OFFSET_Y = 145;
262 public static TOOLTIP_LINK_OFFSET_X = 35;
263 public static TOOLTIP_LINK_OFFSET_Y = 75;
264 public static MENU_LINK_VL_HEIGHT_OFFSET = 250;
265 public static MENU_LINK_VL_WIDTH_OFFSET = 200;
266 public static MENU_LINK_SIMPLE_HEIGHT_OFFSET = 180;
267 public static MENU_LINK_SIMPLE_WIDTH_OFFSET = 130;
268 public static DIAGRAM_RIGHT_WIDTH_OFFSET = 248;
269 public static DIAGRAM_HEADER_OFFSET = 103;
270 public static DIAGRAM_PALETTE_WIDTH_OFFSET = 247;
271 // public static COMPOSITION_HEADER_OFFSET = 50;
272 // public static COMPOSITION_NODE_MENU_WIDTH = 230;
273 // public static COMPOSITION_NODE_MENU_HEIGHT = 200;
274 // public static COMPOSITION_RIGHT_PANEL_OFFSET = 300;
275}
276
277
278export class States {
279 public static WORKSPACE_GENERAL = 'workspace.general';
Michael Landoed64b5e2017-06-09 03:19:04 +0300280 public static WORKSPACE_ACTIVITY_LOG = 'workspace.activity_log';
281 public static WORKSPACE_DEPLOYMENT_ARTIFACTS = 'workspace.deployment_artifacts';
282 public static WORKSPACE_PROPERTIES = 'workspace.properties';
ys969316a9fce2020-01-19 13:50:02 +0200283 public static WORKSPACE_SERVICE_INPUTS = 'workspace.service_inputs';
284 public static WORKSPACE_RESOURCE_INPUTS = 'workspace.resource_inputs';
Michael Landoed64b5e2017-06-09 03:19:04 +0300285 public static WORKSPACE_ATTRIBUTES = 'workspace.attributes';
Michael Landoed64b5e2017-06-09 03:19:04 +0300286 public static WORKSPACE_INFORMATION_ARTIFACTS = 'workspace.information_artifacts';
287 public static WORKSPACE_TOSCA_ARTIFACTS = 'workspace.tosca_artifacts';
288 public static WORKSPACE_COMPOSITION = 'workspace.composition';
Arielk802bd2a2018-04-16 15:37:39 +0300289 public static WORKSPACE_INTERFACE_OPERATION = 'workspace.interface_operation';
Michael Landoed64b5e2017-06-09 03:19:04 +0300290 public static WORKSPACE_NETWORK_CALL_FLOW = 'workspace.network_call_flow';
291 public static WORKSPACE_MANAGEMENT_WORKFLOW = 'workspace.management_workflow';
292 public static WORKSPACE_DEPLOYMENT = 'workspace.deployment';
293 public static WORKSPACE_DISTRIBUTION = 'workspace.distribution';
294 public static WORKSPACE_PROPERTIES_ASSIGNMENT = 'workspace.properties_assignment';
295 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES = 'workspace.reqAndCap';
miriame41ee9cb2019-03-04 13:49:15 +0200296 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES_EDITABLE = 'workspace.reqAndCapEditable';
Idan Amiteedaaf92018-01-31 13:27:33 +0200297 public static WORKSPACE_PLUGINS = 'workspace.plugins';
Michael Landoed64b5e2017-06-09 03:19:04 +0300298 public static WORKSPACE_NG2 = 'workspace.ng2';
299}
300
301export class EVENTS {
Michael Landoa5445102018-03-04 14:53:33 +0200302 static LEFT_PALETTE_UPDATE_EVENT = "leftPanelUpdateEvent";
Michael Landoed64b5e2017-06-09 03:19:04 +0300303 static ON_CSAR_LOADING = "onCsarLoading";
304 static DOWNLOAD_ARTIFACT_FINISH_EVENT = "downloadArtifactFinishEvent";
305 static ON_WORKSPACE_SAVE_BUTTON_CLICK = "onWorkspaceSaveButtonClick";
306 static ON_WORKSPACE_SAVE_BUTTON_SUCCESS = "onWorkspaceSaveButtonSuccess";
307 static ON_WORKSPACE_SAVE_BUTTON_ERROR = "onWorkspaceSaveButtonError";
Michael Lando5b593492018-07-29 16:13:45 +0300308 static ON_WORKSPACE_UNSAVED_CHANGES = "onWorkspaceUnsavedChanges";
Michael Landob3d48982017-06-11 14:22:02 +0300309 static ON_CHECKOUT = "onCheckout";
Michael Lando5b593492018-07-29 16:13:45 +0300310 static ON_LIFECYCLE_CHANGE_WITH_SAVE = "onLifecycleChangeWithSave";
311 static ON_LIFECYCLE_CHANGE = "onCheckout";
Michael Landoed64b5e2017-06-09 03:19:04 +0300312
313 //Loader events
314 static SHOW_LOADER_EVENT = "showLoaderEvent";
315 static HIDE_LOADER_EVENT = "hideLoaderEvent";
Michael Lando5b593492018-07-29 16:13:45 +0300316 static UPDATE_PANEL = 'updatePanel';
ys969316a9fce2020-01-19 13:50:02 +0200317 static ON_DISTRIBUTION_SUCCESS = 'onDistributionSuccess';
Michael Landoed64b5e2017-06-09 03:19:04 +0300318}
319
320
321export class UNIQUE_GROUP_PROPERTIES_NAME {
322 public static MIN_VF_MODULE_INSTANCES = 'min_vf_module_instances';
323 public static MAX_VF_MODULE_INSTANCES = 'max_vf_module_instances';
324 public static INITIAL_COUNT = 'initial_count';
325 public static IS_BASE = 'isBase';
326 public static VF_MODULE_TYPE = 'vf_module_type';
327 public static VF_MODULE_LABEL = 'vf_module_label';
328 public static VF_MODULE_DESCRIPTION = 'vf_module_description';
329 public static VOLUME_GROUP = 'volume_group';
330}
331
332
333export class GRAPH_EVENTS {
334 static ON_COMPOSITION_GRAPH_DATA_LOADED = 'onCompositionGraphDataLoaded';
335 static ON_DEPLOYMENT_GRAPH_DATA_LOADED = 'onDeploymentGraphDataLoaded';
336 static ON_NODE_SELECTED = "onNodeSelected";
Michael Lando5b593492018-07-29 16:13:45 +0300337 static ON_ZONE_INSTANCE_SELECTED = "onZoneInstanceSelected";
Michael Landoed64b5e2017-06-09 03:19:04 +0300338 static ON_GRAPH_BACKGROUND_CLICKED = "onGraphBackgroundClicked";
339 static ON_PALETTE_COMPONENT_HOVER_IN = 'onPaletteComponentHoverIn';
340 static ON_PALETTE_COMPONENT_HOVER_OUT = 'onPaletteComponentHoverOut';
341 static ON_PALETTE_COMPONENT_DRAG_START = 'onPaletteComponentDragStart';
342 static ON_PALETTE_COMPONENT_DRAG_ACTION = 'onPaletteComponentDragAction';
ys969316a9fce2020-01-19 13:50:02 +0200343 static ON_PALETTE_COMPONENT_DROP = 'onPaletteComponentDrop';
Michael Landoa5445102018-03-04 14:53:33 +0200344 static ON_PALETTE_COMPONENT_SHOW_POPUP_PANEL = 'onPaletteComponentShowPopupPanel';
345 static ON_PALETTE_COMPONENT_HIDE_POPUP_PANEL = 'onPaletteComponentHidePopupPanel';
Michael Landoed64b5e2017-06-09 03:19:04 +0300346 static ON_COMPONENT_INSTANCE_NAME_CHANGED = 'onComponentInstanceNameChanged';
Michael Lando5b593492018-07-29 16:13:45 +0300347 static ON_ZONE_INSTANCE_NAME_CHANGED = 'onZoneInstanceNameChanged';
Michael Landoed64b5e2017-06-09 03:19:04 +0300348 static ON_DELETE_COMPONENT_INSTANCE = 'onDeleteComponentInstance';
Michael Lando5b593492018-07-29 16:13:45 +0300349 static ON_DELETE_ZONE_INSTANCE = 'onDeleteZoneInstance';
350 static ON_DELETE_COMPONENT_INSTANCE_SUCCESS = 'onDeleteComponentInstanceSuccess';
Michael Landoed64b5e2017-06-09 03:19:04 +0300351 static ON_DELETE_EDGE = 'onDeleteEdge';
352 static ON_INSERT_NODE_TO_UCPE = 'onInsertNodeToUCPE';
353 static ON_REMOVE_NODE_FROM_UCPE = 'onRemoveNodeFromUCPE';
354 static ON_VERSION_CHANGED = 'onVersionChanged';
355 static ON_CREATE_COMPONENT_INSTANCE = 'onCreateComponentInstance';
Michael Lando5b593492018-07-29 16:13:45 +0300356 static ON_ADD_ZONE_INSTANCE_FROM_PALETTE = 'onAddZoneInstanceFromPalette';
357 static ON_CANVAS_TAG_START = 'onCanvasTagStart';
358 static ON_CANVAS_TAG_END = 'onCanvasTagEnd';
359 static ON_POLICY_INSTANCE_UPDATE = 'onPolicyInstanceUpdate';
360 static ON_GROUP_INSTANCE_UPDATE = 'onGroupInstanceUpdate';
ys969316a9fce2020-01-19 13:50:02 +0200361 static ON_SERVICE_PATH_CREATED = 'onServicePathCreated';
Michael Landoed64b5e2017-06-09 03:19:04 +0300362}
363
miriamec2ce9142019-02-13 15:17:26 +0200364export class DEPENDENCY_EVENTS {
365 static ON_DEPENDENCY_CHANGE = 'onDependencyStatusChange';
366}
367
Michael Landoed64b5e2017-06-09 03:19:04 +0300368
369export class COMPONENT_FIELDS {
370 static COMPONENT_INSTANCES_PROPERTIES = "componentInstancesProperties";
ojasdubey4192e3c2019-03-18 14:15:03 +0530371 static COMPONENT_INSTANCES_INPUTS = "componentInstancesInputs";
Michael Landoed64b5e2017-06-09 03:19:04 +0300372 static COMPONENT_INSTANCES_ATTRIBUTES = "componentInstancesAttributes";
373 static COMPONENT_ATTRIBUTES = "attributes";
374 static COMPONENT_INSTANCES = "componentInstances";
375 static COMPONENT_INSTANCES_RELATION = "componentInstancesRelations";
376 static COMPONENT_INPUTS = "inputs";
377 static COMPONENT_METADATA = "metadata";
378 static COMPONENT_DEPLOYMENT_ARTIFACTS = "deploymentArtifacts";
379 static COMPONENT_INFORMATIONAL_ARTIFACTS = "artifacts";
380 static COMPONENT_PROPERTIES = "properties";
381 static COMPONENT_CAPABILITIES = "capabilities";
ys969316a9fce2020-01-19 13:50:02 +0200382 static COMPONENT_CAPABILITIES_PROPERTIES = "instanceCapabiltyProperties";
Michael Landoed64b5e2017-06-09 03:19:04 +0300383 static COMPONENT_REQUIREMENTS = "requirements";
384 static COMPONENT_TOSCA_ARTIFACTS = "toscaArtifacts";
Michael Landoa5445102018-03-04 14:53:33 +0200385 static COMPONENT_POLICIES = "policies";
Michael Landoed64b5e2017-06-09 03:19:04 +0300386 static COMPONENT_GROUPS = "groups";
Arielk802bd2a2018-04-16 15:37:39 +0300387 static COMPONENT_INTERFACE_OPERATIONS = "interfaces";
ojasdubey4192e3c2019-03-18 14:15:03 +0530388 static COMPONENT_INSTANCES_INTERFACES = "componentInstancesInterfaces";
Michael Lando5b593492018-07-29 16:13:45 +0300389 static COMPONENT_NON_EXCLUDED_GROUPS = "nonExcludedGroups";
390 static COMPONENT_NON_EXCLUDED_POLICIES = "nonExcludedPolicies";
ys969316a9fce2020-01-19 13:50:02 +0200391 static FORWARDING_PATHS = "forwardingPaths";
392 static SERVICE_API_ARTIFACT = "serviceApiArtifacts";
Michael Landoed64b5e2017-06-09 03:19:04 +0300393}
Michael Landoa5445102018-03-04 14:53:33 +0200394
395export class SERVICE_FIELDS {
396 static FORWARDING_PATHS = "forwardingPaths";
miriamec2ce9142019-02-13 15:17:26 +0200397 static NODE_FILTER = "nodeFilter";
Michael Landoa5445102018-03-04 14:53:33 +0200398}
399
Michael Landoed64b5e2017-06-09 03:19:04 +0300400export class API_QUERY_PARAMS {
401 static INCLUDE = "include";
402}
Michael Lando5b593492018-07-29 16:13:45 +0300403
404export enum TargetOrMemberType {
405 COMPONENT_INSTANCES,
406 GROUPS
407}
408
409export class CANVAS_TAG_MODE {
410 static POLICY_TAGGING = "policy-tagging";
411 static POLICY_TAGGING_HOVER = "policy-tagging-hover";
412 static GROUP_TAGGING = "group-tagging";
413 static GROUP_TAGGING_HOVER= "group-tagging-hover";
414}