blob: f7cbf8d7b0d900a8bb3cce1dc1459b02af0ba333 [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'
davsad74d32db2021-03-01 23:47:07 +000030export let CATEGORY_SERVICE_METADATA_KEYS = ["Naming Policy","Service Type","Service Function","Service Role"];
Michael Lando5b593492018-07-29 16:13:45 +030031
32export class GeneralStatus {
vasraz26e50292021-02-16 17:37:57 +000033 static OK = 'OK';
34 static GENERAL_ERROR = 'GENERAL_ERROR';
Michael Lando5b593492018-07-29 16:13:45 +030035}
Michael Landoed64b5e2017-06-09 03:19:04 +030036
37export class ComponentType {
vasraz26e50292021-02-16 17:37:57 +000038 static SERVICE = 'SERVICE';
39 static RESOURCE = 'RESOURCE';
40 static RESOURCE_INSTANCE = 'RESOURCE_INSTANCE';
41 static SERVICE_PROXY = 'ServiceProxy'
42 static SERVICE_SUBSTITUTION = 'ServiceSubstitution'
Michael Landoed64b5e2017-06-09 03:19:04 +030043}
44
45export class ServerTypeUrl {
vasraz26e50292021-02-16 17:37:57 +000046 static RESOURCES = 'resources/';
47 static SERVICES = 'services/';
ys969316a9fce2020-01-19 13:50:02 +020048
vasraz26e50292021-02-16 17:37:57 +000049 public static toServerTypeUrl(componentType: ComponentType): string {
50 if (componentType == ComponentType.SERVICE) {
51 return ServerTypeUrl.SERVICES.slice(0, -1);
52 } else if (componentType == ComponentType.RESOURCE) {
53 return ServerTypeUrl.RESOURCES.slice(0, -1);
54 } else {
55 return undefined;
ys969316a9fce2020-01-19 13:50:02 +020056 }
vasraz26e50292021-02-16 17:37:57 +000057 }
Michael Landoed64b5e2017-06-09 03:19:04 +030058}
59
ys969316a9fce2020-01-19 13:50:02 +020060
Michael Landoed64b5e2017-06-09 03:19:04 +030061export class ResourceType {
vasraz26e50292021-02-16 17:37:57 +000062 static VF = 'VF';
63 static VL = 'VL';
64 static CP = 'CP';
65 static VFC = 'VFC';
66 static VFCMT = 'VFCMT';
67 static PNF = 'PNF';
68 static CVFC = 'CVFC';
69 static CONFIGURATION = 'Configuration';
70 static CR = 'CR';
Michael Landoed64b5e2017-06-09 03:19:04 +030071}
72
ys969316a9fce2020-01-19 13:50:02 +020073export class SdcElementType {
vasraz26e50292021-02-16 17:37:57 +000074 static GROUP = 'GROUP';
75 static POLICY = 'POLICY';
76 static SERVICE_PROXY = 'ServiceProxy'
ys969316a9fce2020-01-19 13:50:02 +020077}
vasraz26e50292021-02-16 17:37:57 +000078
Michael Landoed64b5e2017-06-09 03:19:04 +030079export class ComponentState {
vasraz26e50292021-02-16 17:37:57 +000080 static CERTIFICATION_IN_PROGRESS = 'CERTIFICATION_IN_PROGRESS';
81 static CERTIFIED = 'CERTIFIED';
82 static NOT_CERTIFIED_CHECKOUT = 'NOT_CERTIFIED_CHECKOUT';
83 static NOT_CERTIFIED_CHECKIN = 'NOT_CERTIFIED_CHECKIN';
84 static READY_FOR_CERTIFICATION = 'READY_FOR_CERTIFICATION';
Michael Landoed64b5e2017-06-09 03:19:04 +030085}
86
87export class DistributionStatus {
vasraz26e50292021-02-16 17:37:57 +000088 DISTRIBUTION_NOT_APPROVED = 'DISTRIBUTION_NOT_APPROVED';
89 DISTRIBUTION_APPROVED = 'DISTRIBUTION_APPROVED';
90 DISTRIBUTED = 'DISTRIBUTED';
91 DISTRIBUTION_REJECTED = 'DISTRIBUTION_REJECTED';
Michael Landoed64b5e2017-06-09 03:19:04 +030092}
93
94export class ArtifactGroupType {
vasraz26e50292021-02-16 17:37:57 +000095 static DEPLOYMENT = "DEPLOYMENT";
96 static INFORMATION = "INFORMATIONAL";
97 static SERVICE_API = "SERVICE_API";
98 static TOSCA = "TOSCA";
Michael Landoed64b5e2017-06-09 03:19:04 +030099}
100
101export class ArtifactType {
ys969316a9fce2020-01-19 13:50:02 +0200102
vasraz26e50292021-02-16 17:37:57 +0000103 static DEPLOYMENT = "DEPLOYMENT";
104 static INFORMATION = "INFORMATIONAL";
105 static SERVICE_API = "SERVICE_API";
106 static HEAT_ENV = "HEAT_ENV";
107 static HEAT = "HEAT";
108 static HEAT_VOL = "HEAT_VOL";
109 static HEAT_NET = "HEAT_NET";
110 static VF_LICENSE = "VF_LICENSE";
111 static PM_DICTIONARY = "PM_DICTIONARY";
112 static VENDOR_LICENSE = "VENDOR_LICENSE";
113 static THIRD_PARTY_RESERVED_TYPES = {
114 WORKFLOW: "WORKFLOW",
115 NETWORK_CALL_FLOW: "NETWORK_CALL_FLOW",
116 AAI_SERVICE_MODEL: "AAI_SERVICE_MODEL",
117 AAI_VF_MODEL: "AAI_VF_MODEL",
118 AAI_VF_MODULE_MODEL: "AAI_VF_MODULE_MODEL",
119 AAI_VF_INSTANCE_MODEL: "AAI_VF_INSTANCE_MODEL"
120 };
121 static TOSCA = {TOSCA_TEMPLATE: "TOSCA_TEMPLATE", TOSCA_CSAR: "TOSCA_CSAR"};
122 static VES_EVENTS = "VES_EVENTS";
Michael Landoed64b5e2017-06-09 03:19:04 +0300123}
124
125export class SEVERITY {
vasraz26e50292021-02-16 17:37:57 +0000126 public static DEBUG = 'DEBUG';
127 public static INFO = 'INFO';
128 public static WARNING = 'WARNING';
129 public static ERROR = 'ERROR';
Michael Landoed64b5e2017-06-09 03:19:04 +0300130}
131
132export class PROPERTY_TYPES {
vasraz26e50292021-02-16 17:37:57 +0000133 public static STRING = 'string';
134 public static INTEGER = 'integer';
135 public static FLOAT = 'float';
136 public static BOOLEAN = 'boolean';
137 public static JSON = 'json';
138 public static MAP = 'map';
139 public static LIST = 'list';
140 public static SCALAR = 'scalar-unit';
141 public static SCALAR_FREQUENCY = 'scalar-unit.frequency';
142 public static SCALAR_SIZE = 'scalar-unit.size';
143 public static SCALAR_TIME = 'scalar-unit.time';
Michael Landoed64b5e2017-06-09 03:19:04 +0300144}
145
146export class SOURCES {
vasraz26e50292021-02-16 17:37:57 +0000147 public static A_AND_AI = 'A&AI';
148 public static ORDER = 'Order';
149 public static RUNTIME = 'Runtime';
Michael Landoed64b5e2017-06-09 03:19:04 +0300150}
151
152export class PROPERTY_DATA {
vasraz26e50292021-02-16 17:37:57 +0000153 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];
154 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];
155 public static SIMPLE_TYPES_COMPARABLE = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT];
156 public static SCALAR_TYPES = [PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME];
157 public static ROOT_DATA_TYPE = "tosca.datatypes.Root";
158 public static OPENECOMP_ROOT = "org.openecomp.datatypes.Root";
159 public static SUPPLEMENTAL_DATA = "supplemental_data";
160 public static SOURCES = [SOURCES.A_AND_AI, SOURCES.ORDER, SOURCES.RUNTIME];
Michael Landoed64b5e2017-06-09 03:19:04 +0300161}
162
163export class PROPERTY_VALUE_CONSTRAINTS {
vasraz26e50292021-02-16 17:37:57 +0000164 public static MAX_LENGTH = 2500;
165 public static JSON_MAX_LENGTH = 4096;
Michael Landoed64b5e2017-06-09 03:19:04 +0300166}
167
168export class Role {
vasraz26e50292021-02-16 17:37:57 +0000169 public static ADMIN = 'ADMIN';
170 public static DESIGNER = 'DESIGNER';
171 public static TESTER = 'TESTER';
172 public static OPS = 'OPS';
173 public static GOVERNOR = 'GOVERNOR';
Michael Landoed64b5e2017-06-09 03:19:04 +0300174}
175
vasraz26e50292021-02-16 17:37:57 +0000176export enum FormState {
177 CREATE,
178 UPDATE,
179 IMPORT,
180 VIEW
Michael Landoed64b5e2017-06-09 03:19:04 +0300181}
182
Michael Lando5b593492018-07-29 16:13:45 +0300183export class instantiationType {
vasraz26e50292021-02-16 17:37:57 +0000184 public static MACRO = 'Macro';
185 public static A_LA_CARTE = 'A-la-carte';
Michael Lando5b593492018-07-29 16:13:45 +0300186}
187
Michael Landoed64b5e2017-06-09 03:19:04 +0300188export class WorkspaceMode {
vasraz26e50292021-02-16 17:37:57 +0000189 public static CREATE = 'create';
190 public static EDIT = 'edit';
191 public static IMPORT = 'import';
192 public static VIEW = 'view';
Michael Landoed64b5e2017-06-09 03:19:04 +0300193}
194
195export class ImagesUrl {
vasraz26e50292021-02-16 17:37:57 +0000196 public static RESOURCE_ICONS = '/assets/styles/images/resource-icons/';
197 public static SERVICE_ICONS = '/assets/styles/images/service-icons/';
198 public static SERVICE_PROXY_ICONS = '/assets/styles/images/service-proxy-icons/';
199 public static SELECTED_UCPE_INSTANCE = '/assets/styles/images/resource-icons/selectedUcpeInstance.png';
200 public static SELECTED_CP_INSTANCE = '/assets/styles/images/resource-icons/selectedCPInstance.png';
201 public static SELECTED_VL_INSTANCE = '/assets/styles/images/resource-icons/selectedVLInstance.png';
202 public static CANVAS_PLUS_ICON = '/assets/styles/images/resource-icons/canvasPlusIcon.png';
203 public static CANVAS_TAG_ICON = '/assets/styles/images/canvas-tagging-icons/indication.svg';
204 public static CANVAS_POLICY_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/policy_added.svg';
205 public static CANVAS_GROUP_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/group_added.svg';
206 public static MODULE_ICON = '/assets/styles/images/resource-icons/module.png';
207 public static OPEN_MODULE_ICON = '/assets/styles/images/resource-icons/openModule.png';
208 public static OPEN_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/openModuleHover.png';
209 public static CLOSE_MODULE_ICON = '/assets/styles/images/resource-icons/closeModule.png';
210 public static CLOSE_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/closeModuleHover.png';
Michael Landoed64b5e2017-06-09 03:19:04 +0300211}
212
Michael Lando5b593492018-07-29 16:13:45 +0300213
214export class CanvasHandleTypes {
vasraz26e50292021-02-16 17:37:57 +0000215 public static ADD_EDGE = 'add-edge';
216 public static TAG_AVAILABLE = 'tag-available';
217 public static TAGGED_POLICY = 'tagged-policy';
218 public static TAGGED_GROUP = 'tagged-group';
Michael Lando5b593492018-07-29 16:13:45 +0300219}
220
Michael Landoed64b5e2017-06-09 03:19:04 +0300221export class ModalType {
vasraz26e50292021-02-16 17:37:57 +0000222 static STANDARD = 'standard';
223 static ERROR = 'error';
224 static ALERT = 'alert';
Michael Landoed64b5e2017-06-09 03:19:04 +0300225}
226
Avi Zivf5854fd2017-07-31 15:50:46 +0300227export class ServerErrors {
vasraz26e50292021-02-16 17:37:57 +0000228 static ERROR_TITLE = 'Error';
229 static DEFAULT_ERROR = 'Error getting response from server';
230 static MESSAGE_ERROR = 'Wrong error format from server';
231 static DOWNLOAD_ERROR = 'Download error';
Avi Zivf5854fd2017-07-31 15:50:46 +0300232}
233
Michael Landoed64b5e2017-06-09 03:19:04 +0300234export class GraphColors {
vasraz26e50292021-02-16 17:37:57 +0000235 public static NOT_CERTIFIED_LINK = 'rgb(218,31,61)';
236 public static VL_LINK = 'rgb(216,216,216)';
237 public static ACTIVE_LINK = '#30bdf2';
238 public static BASE_LINK = 'rgb(55,55,55)';
239 public static NODE_BACKGROUND_COLOR = 'rgba(46, 162, 157, 0.24)';
240 public static NODE_SHADOW_COLOR = 'rgba(198, 230, 228, 0.7)';
241 public static NODE_OVERLAPPING_BACKGROUND_COLOR = 'rgba(179, 10, 60, 0.24)';
242 public static NODE_OVERLAPPING_SHADOW_COLOR = 'rgba(236, 194, 206, 0.7)';
243 public static NODE_UCPE_CP = '#9063cd';
244 public static NODE_UCPE = '#fbfbfb';
245 public static NODE_SELECTED_BORDER_COLOR = '#30bdf2';
246 public static SERVICE_PATH_LINK = '#70208a';
Michael Landoed64b5e2017-06-09 03:19:04 +0300247}
vasraz26e50292021-02-16 17:37:57 +0000248
Michael Landoed64b5e2017-06-09 03:19:04 +0300249export class GraphTransactionLogText {
vasraz26e50292021-02-16 17:37:57 +0000250 public static REMOVE_TEMP_LINK = "remove tempLink";
251 public static DELETE_LINK = "delete link";
252 public static ADD_LINK = "delete link";
253 public static ADD_NODE = "adding node";
Michael Landoed64b5e2017-06-09 03:19:04 +0300254}
255
256export class GraphUIObjects {
vasraz26e50292021-02-16 17:37:57 +0000257 public static HANDLE_SIZE = 18;
258 public static NODE_OVERLAP_MIN_SIZE = 30;
259 public static DEFAULT_RESOURCE_WIDTH = 65;
260 public static SMALL_RESOURCE_WIDTH = 21;
261 public static LINK_MENU_HEIGHT = 420;
262 public static TOP_HEADER_HEIGHT = 200;
263 public static TOOLTIP_OFFSET_X = 50;
264 public static TOOLTIP_OFFSET_Y = 145;
265 public static TOOLTIP_LINK_OFFSET_X = 35;
266 public static TOOLTIP_LINK_OFFSET_Y = 75;
267 public static MENU_LINK_VL_HEIGHT_OFFSET = 250;
268 public static MENU_LINK_VL_WIDTH_OFFSET = 200;
269 public static MENU_LINK_SIMPLE_HEIGHT_OFFSET = 180;
270 public static MENU_LINK_SIMPLE_WIDTH_OFFSET = 130;
271 public static DIAGRAM_RIGHT_WIDTH_OFFSET = 248;
272 public static DIAGRAM_HEADER_OFFSET = 103;
273 public static DIAGRAM_PALETTE_WIDTH_OFFSET = 247;
274 // public static COMPOSITION_HEADER_OFFSET = 50;
275 // public static COMPOSITION_NODE_MENU_WIDTH = 230;
276 // public static COMPOSITION_NODE_MENU_HEIGHT = 200;
277 // public static COMPOSITION_RIGHT_PANEL_OFFSET = 300;
Michael Landoed64b5e2017-06-09 03:19:04 +0300278}
279
280
281export class States {
vasraz26e50292021-02-16 17:37:57 +0000282 public static WORKSPACE_GENERAL = 'workspace.general';
283 public static WORKSPACE_ACTIVITY_LOG = 'workspace.activity_log';
284 public static WORKSPACE_DEPLOYMENT_ARTIFACTS = 'workspace.deployment_artifacts';
285 public static WORKSPACE_PROPERTIES = 'workspace.properties';
286 public static WORKSPACE_SERVICE_INPUTS = 'workspace.service_inputs';
287 public static WORKSPACE_RESOURCE_INPUTS = 'workspace.resource_inputs';
288 public static WORKSPACE_ATTRIBUTES = 'workspace.attributes';
289 public static WORKSPACE_ATTRIBUTES_OUTPUTS = 'workspace.attributes_outputs';
290 public static WORKSPACE_INFORMATION_ARTIFACTS = 'workspace.information_artifacts';
291 public static WORKSPACE_TOSCA_ARTIFACTS = 'workspace.tosca_artifacts';
292 public static WORKSPACE_COMPOSITION = 'workspace.composition';
293 public static WORKSPACE_INTERFACE_OPERATION = 'workspace.interface_operation';
294 public static WORKSPACE_NETWORK_CALL_FLOW = 'workspace.network_call_flow';
295 public static WORKSPACE_MANAGEMENT_WORKFLOW = 'workspace.management_workflow';
296 public static WORKSPACE_DEPLOYMENT = 'workspace.deployment';
297 public static WORKSPACE_DISTRIBUTION = 'workspace.distribution';
298 public static WORKSPACE_PROPERTIES_ASSIGNMENT = 'workspace.properties_assignment';
299 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES = 'workspace.reqAndCap';
300 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES_EDITABLE = 'workspace.reqAndCapEditable';
301 public static WORKSPACE_PLUGINS = 'workspace.plugins';
302 public static WORKSPACE_NG2 = 'workspace.ng2';
Michael Landoed64b5e2017-06-09 03:19:04 +0300303}
304
305export class EVENTS {
vasraz26e50292021-02-16 17:37:57 +0000306 static LEFT_PALETTE_UPDATE_EVENT = "leftPanelUpdateEvent";
307 static ON_CSAR_LOADING = "onCsarLoading";
308 static DOWNLOAD_ARTIFACT_FINISH_EVENT = "downloadArtifactFinishEvent";
309 static ON_WORKSPACE_SAVE_BUTTON_CLICK = "onWorkspaceSaveButtonClick";
310 static ON_WORKSPACE_SAVE_BUTTON_SUCCESS = "onWorkspaceSaveButtonSuccess";
311 static ON_WORKSPACE_SAVE_BUTTON_ERROR = "onWorkspaceSaveButtonError";
312 static ON_WORKSPACE_UNSAVED_CHANGES = "onWorkspaceUnsavedChanges";
313 static ON_CHECKOUT = "onCheckout";
314 static ON_LIFECYCLE_CHANGE_WITH_SAVE = "onLifecycleChangeWithSave";
315 static ON_LIFECYCLE_CHANGE = "onCheckout";
Michael Landoed64b5e2017-06-09 03:19:04 +0300316
vasraz26e50292021-02-16 17:37:57 +0000317 //Loader events
318 static SHOW_LOADER_EVENT = "showLoaderEvent";
319 static HIDE_LOADER_EVENT = "hideLoaderEvent";
320 static UPDATE_PANEL = 'updatePanel';
321 static ON_DISTRIBUTION_SUCCESS = 'onDistributionSuccess';
Michael Landoed64b5e2017-06-09 03:19:04 +0300322}
323
324
325export class UNIQUE_GROUP_PROPERTIES_NAME {
vasraz26e50292021-02-16 17:37:57 +0000326 public static MIN_VF_MODULE_INSTANCES = 'min_vf_module_instances';
327 public static MAX_VF_MODULE_INSTANCES = 'max_vf_module_instances';
328 public static INITIAL_COUNT = 'initial_count';
329 public static IS_BASE = 'isBase';
330 public static VF_MODULE_TYPE = 'vf_module_type';
331 public static VF_MODULE_LABEL = 'vf_module_label';
332 public static VF_MODULE_DESCRIPTION = 'vf_module_description';
333 public static VOLUME_GROUP = 'volume_group';
Michael Landoed64b5e2017-06-09 03:19:04 +0300334}
335
336
337export class GRAPH_EVENTS {
vasraz26e50292021-02-16 17:37:57 +0000338 static ON_COMPOSITION_GRAPH_DATA_LOADED = 'onCompositionGraphDataLoaded';
339 static ON_DEPLOYMENT_GRAPH_DATA_LOADED = 'onDeploymentGraphDataLoaded';
340 static ON_NODE_SELECTED = "onNodeSelected";
341 static ON_ZONE_INSTANCE_SELECTED = "onZoneInstanceSelected";
342 static ON_GRAPH_BACKGROUND_CLICKED = "onGraphBackgroundClicked";
343 static ON_PALETTE_COMPONENT_HOVER_IN = 'onPaletteComponentHoverIn';
344 static ON_PALETTE_COMPONENT_HOVER_OUT = 'onPaletteComponentHoverOut';
345 static ON_PALETTE_COMPONENT_DRAG_START = 'onPaletteComponentDragStart';
346 static ON_PALETTE_COMPONENT_DRAG_ACTION = 'onPaletteComponentDragAction';
347 static ON_PALETTE_COMPONENT_DROP = 'onPaletteComponentDrop';
348 static ON_PALETTE_COMPONENT_SHOW_POPUP_PANEL = 'onPaletteComponentShowPopupPanel';
349 static ON_PALETTE_COMPONENT_HIDE_POPUP_PANEL = 'onPaletteComponentHidePopupPanel';
350 static ON_COMPONENT_INSTANCE_NAME_CHANGED = 'onComponentInstanceNameChanged';
davsadec7af572021-02-19 17:13:51 +0000351 static ON_COMPONENT_INSTANCE_REQUIREMENT_EXTERNAL_CHANGED = 'onComponentInstanceRequirementExternalChanged'
andre.schmid2152a9a2021-05-05 15:31:04 +0100352 static ON_COMPONENT_INSTANCE_CAPABILITY_EXTERNAL_CHANGED = 'onComponentInstanceCapabilityExternalChanged'
vasraz26e50292021-02-16 17:37:57 +0000353 static ON_ZONE_INSTANCE_NAME_CHANGED = 'onZoneInstanceNameChanged';
354 static ON_DELETE_COMPONENT_INSTANCE = 'onDeleteComponentInstance';
355 static ON_DELETE_ZONE_INSTANCE = 'onDeleteZoneInstance';
356 static ON_DELETE_COMPONENT_INSTANCE_SUCCESS = 'onDeleteComponentInstanceSuccess';
357 static ON_DELETE_EDGE = 'onDeleteEdge';
358 static ON_INSERT_NODE_TO_UCPE = 'onInsertNodeToUCPE';
359 static ON_REMOVE_NODE_FROM_UCPE = 'onRemoveNodeFromUCPE';
360 static ON_VERSION_CHANGED = 'onVersionChanged';
361 static ON_CREATE_COMPONENT_INSTANCE = 'onCreateComponentInstance';
362 static ON_ADD_ZONE_INSTANCE_FROM_PALETTE = 'onAddZoneInstanceFromPalette';
363 static ON_CANVAS_TAG_START = 'onCanvasTagStart';
364 static ON_CANVAS_TAG_END = 'onCanvasTagEnd';
365 static ON_POLICY_INSTANCE_UPDATE = 'onPolicyInstanceUpdate';
366 static ON_GROUP_INSTANCE_UPDATE = 'onGroupInstanceUpdate';
367 static ON_SERVICE_PATH_CREATED = 'onServicePathCreated';
Michael Landoed64b5e2017-06-09 03:19:04 +0300368}
369
miriamec2ce9142019-02-13 15:17:26 +0200370export class DEPENDENCY_EVENTS {
vasraz26e50292021-02-16 17:37:57 +0000371 static ON_DEPENDENCY_CHANGE = 'onDependencyStatusChange';
miriamec2ce9142019-02-13 15:17:26 +0200372}
373
aribeiro6c3e3822020-07-02 14:42:40 +0100374export class SUBSTITUTION_FILTER_EVENTS {
vasraz26e50292021-02-16 17:37:57 +0000375 static ON_SUBSTITUTION_FILTER_CHANGE = 'onSubstitutionFilterChange';
aribeiro6c3e3822020-07-02 14:42:40 +0100376}
377
Michael Landoed64b5e2017-06-09 03:19:04 +0300378
379export class COMPONENT_FIELDS {
vasraz26e50292021-02-16 17:37:57 +0000380 static COMPONENT_INSTANCES_PROPERTIES = "componentInstancesProperties";
381 static COMPONENT_INSTANCES_INPUTS = "componentInstancesInputs";
382 static COMPONENT_INSTANCES_ATTRIBUTES = "componentInstancesAttributes";
383 static COMPONENT_INSTANCES_OUTPUTS = "componentInstancesOutputs";
384 static COMPONENT_ATTRIBUTES = "attributes";
385 static COMPONENT_INSTANCES = "componentInstances";
386 static COMPONENT_INSTANCES_RELATION = "componentInstancesRelations";
387 static COMPONENT_INPUTS = "inputs";
388 static COMPONENT_OUTPUTS = "outputs";
389 static COMPONENT_METADATA = "metadata";
390 static COMPONENT_DEPLOYMENT_ARTIFACTS = "deploymentArtifacts";
391 static COMPONENT_INFORMATIONAL_ARTIFACTS = "artifacts";
392 static COMPONENT_PROPERTIES = "properties";
393 static COMPONENT_CAPABILITIES = "capabilities";
394 static COMPONENT_CAPABILITIES_PROPERTIES = "instanceCapabiltyProperties";
395 static COMPONENT_REQUIREMENTS = "requirements";
396 static COMPONENT_TOSCA_ARTIFACTS = "toscaArtifacts";
397 static COMPONENT_POLICIES = "policies";
398 static COMPONENT_GROUPS = "groups";
399 static COMPONENT_INTERFACE_OPERATIONS = "interfaces";
400 static COMPONENT_INSTANCES_INTERFACES = "componentInstancesInterfaces";
401 static COMPONENT_NON_EXCLUDED_GROUPS = "nonExcludedGroups";
402 static COMPONENT_NON_EXCLUDED_POLICIES = "nonExcludedPolicies";
403 static FORWARDING_PATHS = "forwardingPaths";
404 static SERVICE_API_ARTIFACT = "serviceApiArtifacts";
Michael Landoed64b5e2017-06-09 03:19:04 +0300405}
Michael Landoa5445102018-03-04 14:53:33 +0200406
407export class SERVICE_FIELDS {
vasraz26e50292021-02-16 17:37:57 +0000408 static FORWARDING_PATHS = "forwardingPaths";
409 static NODE_FILTER = "nodeFilter";
410 static SUBSTITUTION_FILTER = "substitutionFilter";
Michael Landoa5445102018-03-04 14:53:33 +0200411}
412
Michael Landoed64b5e2017-06-09 03:19:04 +0300413export class API_QUERY_PARAMS {
vasraz26e50292021-02-16 17:37:57 +0000414 static INCLUDE = "include";
Michael Landoed64b5e2017-06-09 03:19:04 +0300415}
Michael Lando5b593492018-07-29 16:13:45 +0300416
417export enum TargetOrMemberType {
vasraz26e50292021-02-16 17:37:57 +0000418 COMPONENT_INSTANCES,
419 GROUPS
Michael Lando5b593492018-07-29 16:13:45 +0300420}
421
422export class CANVAS_TAG_MODE {
vasraz26e50292021-02-16 17:37:57 +0000423 static POLICY_TAGGING = "policy-tagging";
424 static POLICY_TAGGING_HOVER = "policy-tagging-hover";
425 static GROUP_TAGGING = "group-tagging";
426 static GROUP_TAGGING_HOVER = "group-tagging-hover";
Michael Lando5b593492018-07-29 16:13:45 +0300427}
ilanap94e77782020-04-01 14:25:35 +0300428
429export class DROPDOWN_OPTION_TYPE {
vasraz26e50292021-02-16 17:37:57 +0000430 static SIMPLE = "Simple";
431 static HEADER = "Header";
432 static DISABLE = "Disable";
433 static HORIZONTAL_LINE = "HorizontalLine";
ilanap94e77782020-04-01 14:25:35 +0300434}