blob: f2efc42e44195440b154c88f010f20ca56e05124 [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';
andre.schmidcd6f9332020-01-29 17:25:21 +000040 static RESOURCE_INSTANCE = 'RESOURCE_INSTANCE';
Tal Gitelman51d50f02017-12-10 18:55:03 +020041 static SERVICE_PROXY = 'ServiceProxy'
Michael Landoed64b5e2017-06-09 03:19:04 +030042}
43
44export class ServerTypeUrl {
45 static RESOURCES = 'resources/';
46 static SERVICES = 'services/';
ys969316a9fce2020-01-19 13:50:02 +020047
48 public static toServerTypeUrl(componentType: ComponentType) : string {
49 if (componentType == ComponentType.SERVICE) {
50 return ServerTypeUrl.SERVICES.slice(0,-1);
51 } else if (componentType == ComponentType.RESOURCE) {
52 return ServerTypeUrl.RESOURCES.slice(0,-1);
53 } else {
54 return undefined;
55 }
56 }
Michael Landoed64b5e2017-06-09 03:19:04 +030057}
58
ys969316a9fce2020-01-19 13:50:02 +020059
60
Michael Landoed64b5e2017-06-09 03:19:04 +030061export class ResourceType {
62 static VF = 'VF';
63 static VL = 'VL';
64 static CP = 'CP';
65 static VFC = 'VFC';
66 static VFCMT = 'VFCMT';
Tal Gitelman153a3582017-07-03 20:16:55 +030067 static PNF = 'PNF';
Michael Lando75aacbb2017-07-17 21:12:03 +030068 static CVFC = 'CVFC';
Tal Gitelman51d50f02017-12-10 18:55:03 +020069 static CONFIGURATION = 'Configuration';
Michael Landoa5445102018-03-04 14:53:33 +020070 static CR = 'CR';
Michael Landoed64b5e2017-06-09 03:19:04 +030071}
72
ys969316a9fce2020-01-19 13:50:02 +020073export class SdcElementType {
74 static GROUP = 'GROUP';
75 static POLICY = 'POLICY';
76 static SERVICE_PROXY = 'ServiceProxy'
77}
Michael Landoed64b5e2017-06-09 03:19:04 +030078export class ComponentState {
79 static CERTIFICATION_IN_PROGRESS = 'CERTIFICATION_IN_PROGRESS';
80 static CERTIFIED = 'CERTIFIED';
81 static NOT_CERTIFIED_CHECKOUT = 'NOT_CERTIFIED_CHECKOUT';
82 static NOT_CERTIFIED_CHECKIN = 'NOT_CERTIFIED_CHECKIN';
83 static READY_FOR_CERTIFICATION = 'READY_FOR_CERTIFICATION';
84}
85
86export class DistributionStatus {
87 DISTRIBUTION_NOT_APPROVED = 'DISTRIBUTION_NOT_APPROVED';
88 DISTRIBUTION_APPROVED = 'DISTRIBUTION_APPROVED';
89 DISTRIBUTED = 'DISTRIBUTED';
90 DISTRIBUTION_REJECTED = 'DISTRIBUTION_REJECTED';
91}
92
93export class ArtifactGroupType {
94 static DEPLOYMENT = "DEPLOYMENT";
95 static INFORMATION = "INFORMATIONAL";
96 static SERVICE_API = "SERVICE_API";
ys969316a9fce2020-01-19 13:50:02 +020097 static TOSCA = "TOSCA";
Michael Landoed64b5e2017-06-09 03:19:04 +030098}
99
100export class ArtifactType {
ys969316a9fce2020-01-19 13:50:02 +0200101
102 static DEPLOYMENT = "DEPLOYMENT";
103 static INFORMATION = "INFORMATIONAL";
104 static SERVICE_API = "SERVICE_API";
105 static HEAT_ENV = "HEAT_ENV";
Michael Landoed64b5e2017-06-09 03:19:04 +0300106 static HEAT = "HEAT";
107 static HEAT_VOL = "HEAT_VOL";
108 static HEAT_NET = "HEAT_NET";
109 static VF_LICENSE = "VF_LICENSE";
Tomasz Golabekc5ef9802020-02-19 16:46:44 +0100110 static PM_DICTIONARY = "PM_DICTIONARY";
Michael Landoed64b5e2017-06-09 03:19:04 +0300111 static VENDOR_LICENSE = "VENDOR_LICENSE";
112 static THIRD_PARTY_RESERVED_TYPES = {
113 WORKFLOW: "WORKFLOW",
114 NETWORK_CALL_FLOW: "NETWORK_CALL_FLOW",
115 AAI_SERVICE_MODEL: "AAI_SERVICE_MODEL",
116 AAI_VF_MODEL: "AAI_VF_MODEL",
117 AAI_VF_MODULE_MODEL: "AAI_VF_MODULE_MODEL",
118 AAI_VF_INSTANCE_MODEL: "AAI_VF_INSTANCE_MODEL"
119 };
120 static TOSCA = {TOSCA_TEMPLATE: "TOSCA_TEMPLATE", TOSCA_CSAR: "TOSCA_CSAR"};
Piotr Darosz2c25cba2019-03-27 15:25:50 +0100121 static VES_EVENTS = "VES_EVENTS";
Michael Landoed64b5e2017-06-09 03:19:04 +0300122}
123
124export class SEVERITY {
125 public static DEBUG = 'DEBUG';
126 public static INFO = 'INFO';
127 public static WARNING = 'WARNING';
128 public static ERROR = 'ERROR';
129}
130
131export class PROPERTY_TYPES {
132 public static STRING = 'string';
133 public static INTEGER = 'integer';
134 public static FLOAT = 'float';
135 public static BOOLEAN = 'boolean';
136 public static JSON = 'json';
137 public static MAP = 'map';
138 public static LIST = 'list';
Tal Gitelman153a3582017-07-03 20:16:55 +0300139 public static SCALAR = 'scalar-unit';
140 public static SCALAR_FREQUENCY = 'scalar-unit.frequency';
141 public static SCALAR_SIZE = 'scalar-unit.size';
142 public static SCALAR_TIME = 'scalar-unit.time';
Michael Landoed64b5e2017-06-09 03:19:04 +0300143}
144
145export class SOURCES {
146 public static A_AND_AI = 'A&AI';
147 public static ORDER = 'Order';
148 public static RUNTIME = 'Runtime';
149}
150
151export class PROPERTY_DATA {
Tal Gitelman153a3582017-07-03 20:16:55 +0300152 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];
153 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 +0200154 public static SIMPLE_TYPES_COMPARABLE = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT];
Tal Gitelman51d50f02017-12-10 18:55:03 +0200155 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 +0300156 public static ROOT_DATA_TYPE = "tosca.datatypes.Root";
Michael Landob3d48982017-06-11 14:22:02 +0300157 public static OPENECOMP_ROOT = "org.openecomp.datatypes.Root";
158 public static SUPPLEMENTAL_DATA = "supplemental_data";
Michael Landoed64b5e2017-06-09 03:19:04 +0300159 public static SOURCES = [SOURCES.A_AND_AI, SOURCES.ORDER, SOURCES.RUNTIME];
160}
161
162export class PROPERTY_VALUE_CONSTRAINTS {
Michael Landob3d48982017-06-11 14:22:02 +0300163 public static MAX_LENGTH = 2500;
Michael Landoed64b5e2017-06-09 03:19:04 +0300164 public static JSON_MAX_LENGTH = 4096;
165}
166
167export class Role {
168 public static ADMIN = 'ADMIN';
169 public static DESIGNER = 'DESIGNER';
Michael Landoed64b5e2017-06-09 03:19:04 +0300170 public static TESTER = 'TESTER';
171 public static OPS = 'OPS';
172 public static GOVERNOR = 'GOVERNOR';
173}
174
175export enum FormState{
176 CREATE,
177 UPDATE,
178 IMPORT,
179 VIEW
180}
181
Michael Lando5b593492018-07-29 16:13:45 +0300182export class instantiationType {
183 public static MACRO = 'Macro';
184 public static A_LA_CARTE = 'A-la-carte';
185}
186
Michael Landoed64b5e2017-06-09 03:19:04 +0300187export class WorkspaceMode {
188 public static CREATE = 'create';
189 public static EDIT = 'edit';
190 public static IMPORT = 'import';
191 public static VIEW = 'view';
192}
193
194export class ImagesUrl {
195 public static RESOURCE_ICONS = '/assets/styles/images/resource-icons/';
196 public static SERVICE_ICONS = '/assets/styles/images/service-icons/';
Tal Gitelman51d50f02017-12-10 18:55:03 +0200197 public static SERVICE_PROXY_ICONS = '/assets/styles/images/service-proxy-icons/';
Michael Landoed64b5e2017-06-09 03:19:04 +0300198 public static SELECTED_UCPE_INSTANCE = '/assets/styles/images/resource-icons/selectedUcpeInstance.png';
199 public static SELECTED_CP_INSTANCE = '/assets/styles/images/resource-icons/selectedCPInstance.png';
200 public static SELECTED_VL_INSTANCE = '/assets/styles/images/resource-icons/selectedVLInstance.png';
201 public static CANVAS_PLUS_ICON = '/assets/styles/images/resource-icons/canvasPlusIcon.png';
Michael Lando5b593492018-07-29 16:13:45 +0300202 public static CANVAS_TAG_ICON = '/assets/styles/images/canvas-tagging-icons/indication.svg';
203 public static CANVAS_POLICY_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/policy_added.svg';
204 public static CANVAS_GROUP_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/group_added.svg';
Michael Landoed64b5e2017-06-09 03:19:04 +0300205 public static MODULE_ICON = '/assets/styles/images/resource-icons/module.png';
206 public static OPEN_MODULE_ICON = '/assets/styles/images/resource-icons/openModule.png';
207 public static OPEN_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/openModuleHover.png';
208 public static CLOSE_MODULE_ICON = '/assets/styles/images/resource-icons/closeModule.png';
209 public static CLOSE_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/closeModuleHover.png';
210}
211
Michael Lando5b593492018-07-29 16:13:45 +0300212
213export class CanvasHandleTypes {
214 public static ADD_EDGE = 'add-edge';
215 public static TAG_AVAILABLE = 'tag-available';
216 public static TAGGED_POLICY = 'tagged-policy';
217 public static TAGGED_GROUP = 'tagged-group';
218}
219
Michael Landoed64b5e2017-06-09 03:19:04 +0300220export class ModalType {
221 static STANDARD = 'standard';
222 static ERROR = 'error';
223 static ALERT = 'alert';
224}
225
Avi Zivf5854fd2017-07-31 15:50:46 +0300226export class ServerErrors {
227 static ERROR_TITLE = 'Error';
228 static DEFAULT_ERROR = 'Error getting response from server';
229 static MESSAGE_ERROR = 'Wrong error format from server';
ys969316a9fce2020-01-19 13:50:02 +0200230 static DOWNLOAD_ERROR = 'Download error';
Avi Zivf5854fd2017-07-31 15:50:46 +0300231}
232
Michael Landoed64b5e2017-06-09 03:19:04 +0300233export class GraphColors {
234 public static NOT_CERTIFIED_LINK = 'rgb(218,31,61)';
235 public static VL_LINK = 'rgb(216,216,216)';
236 public static ACTIVE_LINK = '#30bdf2';
237 public static BASE_LINK = 'rgb(55,55,55)';
238 public static NODE_BACKGROUND_COLOR = 'rgba(46, 162, 157, 0.24)';
239 public static NODE_SHADOW_COLOR = 'rgba(198, 230, 228, 0.7)';
240 public static NODE_OVERLAPPING_BACKGROUND_COLOR = 'rgba(179, 10, 60, 0.24)';
241 public static NODE_OVERLAPPING_SHADOW_COLOR = 'rgba(236, 194, 206, 0.7)';
242 public static NODE_UCPE_CP = '#9063cd';
243 public static NODE_UCPE = '#fbfbfb';
244 public static NODE_SELECTED_BORDER_COLOR = '#30bdf2';
Michael Landoa5445102018-03-04 14:53:33 +0200245 public static SERVICE_PATH_LINK = '#70208a';
Michael Landoed64b5e2017-06-09 03:19:04 +0300246}
247export class GraphTransactionLogText {
248 public static REMOVE_TEMP_LINK = "remove tempLink";
249 public static DELETE_LINK = "delete link";
250 public static ADD_LINK = "delete link";
251 public static ADD_NODE = "adding node";
252}
253
254export class GraphUIObjects {
Idan Amitcb1095e2018-01-22 20:55:42 +0200255 public static HANDLE_SIZE = 18;
256 public static NODE_OVERLAP_MIN_SIZE = 30;
Michael Lando9db40522017-07-22 17:10:02 +0300257 public static DEFAULT_RESOURCE_WIDTH = 65;
258 public static SMALL_RESOURCE_WIDTH = 21;
Michael Landoed64b5e2017-06-09 03:19:04 +0300259 public static LINK_MENU_HEIGHT = 420;
260 public static TOP_HEADER_HEIGHT = 200;
261 public static TOOLTIP_OFFSET_X = 50;
262 public static TOOLTIP_OFFSET_Y = 145;
263 public static TOOLTIP_LINK_OFFSET_X = 35;
264 public static TOOLTIP_LINK_OFFSET_Y = 75;
265 public static MENU_LINK_VL_HEIGHT_OFFSET = 250;
266 public static MENU_LINK_VL_WIDTH_OFFSET = 200;
267 public static MENU_LINK_SIMPLE_HEIGHT_OFFSET = 180;
268 public static MENU_LINK_SIMPLE_WIDTH_OFFSET = 130;
269 public static DIAGRAM_RIGHT_WIDTH_OFFSET = 248;
270 public static DIAGRAM_HEADER_OFFSET = 103;
271 public static DIAGRAM_PALETTE_WIDTH_OFFSET = 247;
272 // public static COMPOSITION_HEADER_OFFSET = 50;
273 // public static COMPOSITION_NODE_MENU_WIDTH = 230;
274 // public static COMPOSITION_NODE_MENU_HEIGHT = 200;
275 // public static COMPOSITION_RIGHT_PANEL_OFFSET = 300;
276}
277
278
279export class States {
280 public static WORKSPACE_GENERAL = 'workspace.general';
Michael Landoed64b5e2017-06-09 03:19:04 +0300281 public static WORKSPACE_ACTIVITY_LOG = 'workspace.activity_log';
282 public static WORKSPACE_DEPLOYMENT_ARTIFACTS = 'workspace.deployment_artifacts';
283 public static WORKSPACE_PROPERTIES = 'workspace.properties';
ys969316a9fce2020-01-19 13:50:02 +0200284 public static WORKSPACE_SERVICE_INPUTS = 'workspace.service_inputs';
285 public static WORKSPACE_RESOURCE_INPUTS = 'workspace.resource_inputs';
Michael Landoed64b5e2017-06-09 03:19:04 +0300286 public static WORKSPACE_ATTRIBUTES = 'workspace.attributes';
Michael Landoed64b5e2017-06-09 03:19:04 +0300287 public static WORKSPACE_INFORMATION_ARTIFACTS = 'workspace.information_artifacts';
288 public static WORKSPACE_TOSCA_ARTIFACTS = 'workspace.tosca_artifacts';
289 public static WORKSPACE_COMPOSITION = 'workspace.composition';
Arielk802bd2a2018-04-16 15:37:39 +0300290 public static WORKSPACE_INTERFACE_OPERATION = 'workspace.interface_operation';
Michael Landoed64b5e2017-06-09 03:19:04 +0300291 public static WORKSPACE_NETWORK_CALL_FLOW = 'workspace.network_call_flow';
292 public static WORKSPACE_MANAGEMENT_WORKFLOW = 'workspace.management_workflow';
293 public static WORKSPACE_DEPLOYMENT = 'workspace.deployment';
294 public static WORKSPACE_DISTRIBUTION = 'workspace.distribution';
295 public static WORKSPACE_PROPERTIES_ASSIGNMENT = 'workspace.properties_assignment';
296 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES = 'workspace.reqAndCap';
miriame41ee9cb2019-03-04 13:49:15 +0200297 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES_EDITABLE = 'workspace.reqAndCapEditable';
Idan Amiteedaaf92018-01-31 13:27:33 +0200298 public static WORKSPACE_PLUGINS = 'workspace.plugins';
Michael Landoed64b5e2017-06-09 03:19:04 +0300299 public static WORKSPACE_NG2 = 'workspace.ng2';
300}
301
302export class EVENTS {
Michael Landoa5445102018-03-04 14:53:33 +0200303 static LEFT_PALETTE_UPDATE_EVENT = "leftPanelUpdateEvent";
Michael Landoed64b5e2017-06-09 03:19:04 +0300304 static ON_CSAR_LOADING = "onCsarLoading";
305 static DOWNLOAD_ARTIFACT_FINISH_EVENT = "downloadArtifactFinishEvent";
306 static ON_WORKSPACE_SAVE_BUTTON_CLICK = "onWorkspaceSaveButtonClick";
307 static ON_WORKSPACE_SAVE_BUTTON_SUCCESS = "onWorkspaceSaveButtonSuccess";
308 static ON_WORKSPACE_SAVE_BUTTON_ERROR = "onWorkspaceSaveButtonError";
Michael Lando5b593492018-07-29 16:13:45 +0300309 static ON_WORKSPACE_UNSAVED_CHANGES = "onWorkspaceUnsavedChanges";
Michael Landob3d48982017-06-11 14:22:02 +0300310 static ON_CHECKOUT = "onCheckout";
Michael Lando5b593492018-07-29 16:13:45 +0300311 static ON_LIFECYCLE_CHANGE_WITH_SAVE = "onLifecycleChangeWithSave";
312 static ON_LIFECYCLE_CHANGE = "onCheckout";
Michael Landoed64b5e2017-06-09 03:19:04 +0300313
314 //Loader events
315 static SHOW_LOADER_EVENT = "showLoaderEvent";
316 static HIDE_LOADER_EVENT = "hideLoaderEvent";
Michael Lando5b593492018-07-29 16:13:45 +0300317 static UPDATE_PANEL = 'updatePanel';
ys969316a9fce2020-01-19 13:50:02 +0200318 static ON_DISTRIBUTION_SUCCESS = 'onDistributionSuccess';
Michael Landoed64b5e2017-06-09 03:19:04 +0300319}
320
321
322export class UNIQUE_GROUP_PROPERTIES_NAME {
323 public static MIN_VF_MODULE_INSTANCES = 'min_vf_module_instances';
324 public static MAX_VF_MODULE_INSTANCES = 'max_vf_module_instances';
325 public static INITIAL_COUNT = 'initial_count';
326 public static IS_BASE = 'isBase';
327 public static VF_MODULE_TYPE = 'vf_module_type';
328 public static VF_MODULE_LABEL = 'vf_module_label';
329 public static VF_MODULE_DESCRIPTION = 'vf_module_description';
330 public static VOLUME_GROUP = 'volume_group';
331}
332
333
334export class GRAPH_EVENTS {
335 static ON_COMPOSITION_GRAPH_DATA_LOADED = 'onCompositionGraphDataLoaded';
336 static ON_DEPLOYMENT_GRAPH_DATA_LOADED = 'onDeploymentGraphDataLoaded';
337 static ON_NODE_SELECTED = "onNodeSelected";
Michael Lando5b593492018-07-29 16:13:45 +0300338 static ON_ZONE_INSTANCE_SELECTED = "onZoneInstanceSelected";
Michael Landoed64b5e2017-06-09 03:19:04 +0300339 static ON_GRAPH_BACKGROUND_CLICKED = "onGraphBackgroundClicked";
340 static ON_PALETTE_COMPONENT_HOVER_IN = 'onPaletteComponentHoverIn';
341 static ON_PALETTE_COMPONENT_HOVER_OUT = 'onPaletteComponentHoverOut';
342 static ON_PALETTE_COMPONENT_DRAG_START = 'onPaletteComponentDragStart';
343 static ON_PALETTE_COMPONENT_DRAG_ACTION = 'onPaletteComponentDragAction';
ys969316a9fce2020-01-19 13:50:02 +0200344 static ON_PALETTE_COMPONENT_DROP = 'onPaletteComponentDrop';
Michael Landoa5445102018-03-04 14:53:33 +0200345 static ON_PALETTE_COMPONENT_SHOW_POPUP_PANEL = 'onPaletteComponentShowPopupPanel';
346 static ON_PALETTE_COMPONENT_HIDE_POPUP_PANEL = 'onPaletteComponentHidePopupPanel';
Michael Landoed64b5e2017-06-09 03:19:04 +0300347 static ON_COMPONENT_INSTANCE_NAME_CHANGED = 'onComponentInstanceNameChanged';
Michael Lando5b593492018-07-29 16:13:45 +0300348 static ON_ZONE_INSTANCE_NAME_CHANGED = 'onZoneInstanceNameChanged';
Michael Landoed64b5e2017-06-09 03:19:04 +0300349 static ON_DELETE_COMPONENT_INSTANCE = 'onDeleteComponentInstance';
Michael Lando5b593492018-07-29 16:13:45 +0300350 static ON_DELETE_ZONE_INSTANCE = 'onDeleteZoneInstance';
351 static ON_DELETE_COMPONENT_INSTANCE_SUCCESS = 'onDeleteComponentInstanceSuccess';
Michael Landoed64b5e2017-06-09 03:19:04 +0300352 static ON_DELETE_EDGE = 'onDeleteEdge';
353 static ON_INSERT_NODE_TO_UCPE = 'onInsertNodeToUCPE';
354 static ON_REMOVE_NODE_FROM_UCPE = 'onRemoveNodeFromUCPE';
355 static ON_VERSION_CHANGED = 'onVersionChanged';
356 static ON_CREATE_COMPONENT_INSTANCE = 'onCreateComponentInstance';
Michael Lando5b593492018-07-29 16:13:45 +0300357 static ON_ADD_ZONE_INSTANCE_FROM_PALETTE = 'onAddZoneInstanceFromPalette';
358 static ON_CANVAS_TAG_START = 'onCanvasTagStart';
359 static ON_CANVAS_TAG_END = 'onCanvasTagEnd';
360 static ON_POLICY_INSTANCE_UPDATE = 'onPolicyInstanceUpdate';
361 static ON_GROUP_INSTANCE_UPDATE = 'onGroupInstanceUpdate';
ys969316a9fce2020-01-19 13:50:02 +0200362 static ON_SERVICE_PATH_CREATED = 'onServicePathCreated';
Michael Landoed64b5e2017-06-09 03:19:04 +0300363}
364
miriamec2ce9142019-02-13 15:17:26 +0200365export class DEPENDENCY_EVENTS {
366 static ON_DEPENDENCY_CHANGE = 'onDependencyStatusChange';
367}
368
Michael Landoed64b5e2017-06-09 03:19:04 +0300369
370export class COMPONENT_FIELDS {
371 static COMPONENT_INSTANCES_PROPERTIES = "componentInstancesProperties";
ojasdubey4192e3c2019-03-18 14:15:03 +0530372 static COMPONENT_INSTANCES_INPUTS = "componentInstancesInputs";
Michael Landoed64b5e2017-06-09 03:19:04 +0300373 static COMPONENT_INSTANCES_ATTRIBUTES = "componentInstancesAttributes";
374 static COMPONENT_ATTRIBUTES = "attributes";
375 static COMPONENT_INSTANCES = "componentInstances";
376 static COMPONENT_INSTANCES_RELATION = "componentInstancesRelations";
377 static COMPONENT_INPUTS = "inputs";
378 static COMPONENT_METADATA = "metadata";
379 static COMPONENT_DEPLOYMENT_ARTIFACTS = "deploymentArtifacts";
380 static COMPONENT_INFORMATIONAL_ARTIFACTS = "artifacts";
381 static COMPONENT_PROPERTIES = "properties";
382 static COMPONENT_CAPABILITIES = "capabilities";
ys969316a9fce2020-01-19 13:50:02 +0200383 static COMPONENT_CAPABILITIES_PROPERTIES = "instanceCapabiltyProperties";
Michael Landoed64b5e2017-06-09 03:19:04 +0300384 static COMPONENT_REQUIREMENTS = "requirements";
385 static COMPONENT_TOSCA_ARTIFACTS = "toscaArtifacts";
Michael Landoa5445102018-03-04 14:53:33 +0200386 static COMPONENT_POLICIES = "policies";
Michael Landoed64b5e2017-06-09 03:19:04 +0300387 static COMPONENT_GROUPS = "groups";
Arielk802bd2a2018-04-16 15:37:39 +0300388 static COMPONENT_INTERFACE_OPERATIONS = "interfaces";
ojasdubey4192e3c2019-03-18 14:15:03 +0530389 static COMPONENT_INSTANCES_INTERFACES = "componentInstancesInterfaces";
Michael Lando5b593492018-07-29 16:13:45 +0300390 static COMPONENT_NON_EXCLUDED_GROUPS = "nonExcludedGroups";
391 static COMPONENT_NON_EXCLUDED_POLICIES = "nonExcludedPolicies";
ys969316a9fce2020-01-19 13:50:02 +0200392 static FORWARDING_PATHS = "forwardingPaths";
393 static SERVICE_API_ARTIFACT = "serviceApiArtifacts";
Michael Landoed64b5e2017-06-09 03:19:04 +0300394}
Michael Landoa5445102018-03-04 14:53:33 +0200395
396export class SERVICE_FIELDS {
397 static FORWARDING_PATHS = "forwardingPaths";
miriamec2ce9142019-02-13 15:17:26 +0200398 static NODE_FILTER = "nodeFilter";
Michael Landoa5445102018-03-04 14:53:33 +0200399}
400
Michael Landoed64b5e2017-06-09 03:19:04 +0300401export class API_QUERY_PARAMS {
402 static INCLUDE = "include";
403}
Michael Lando5b593492018-07-29 16:13:45 +0300404
405export enum TargetOrMemberType {
406 COMPONENT_INSTANCES,
407 GROUPS
408}
409
410export class CANVAS_TAG_MODE {
411 static POLICY_TAGGING = "policy-tagging";
412 static POLICY_TAGGING_HOVER = "policy-tagging-hover";
413 static GROUP_TAGGING = "group-tagging";
414 static GROUP_TAGGING_HOVER= "group-tagging-hover";
415}
ilanap94e77782020-04-01 14:25:35 +0300416
417export class DROPDOWN_OPTION_TYPE {
418 static SIMPLE = "Simple";
419 static HEADER = "Header";
420 static DISABLE = "Disable";
421 static HORIZONTAL_LINE = "HorizontalLine";
422}