blob: 58aa402b0208b85fc2c7a40cb12f827279b3346f [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"];
davsad38f534f2021-08-23 05:54:13 +010031export let DEFAULT_MODEL_NAME = "SDC AID";
Michael Lando5b593492018-07-29 16:13:45 +030032
33export class GeneralStatus {
vasraz26e50292021-02-16 17:37:57 +000034 static OK = 'OK';
35 static GENERAL_ERROR = 'GENERAL_ERROR';
Michael Lando5b593492018-07-29 16:13:45 +030036}
Michael Landoed64b5e2017-06-09 03:19:04 +030037
38export class ComponentType {
vasraz26e50292021-02-16 17:37:57 +000039 static SERVICE = 'SERVICE';
40 static RESOURCE = 'RESOURCE';
41 static RESOURCE_INSTANCE = 'RESOURCE_INSTANCE';
42 static SERVICE_PROXY = 'ServiceProxy'
43 static SERVICE_SUBSTITUTION = 'ServiceSubstitution'
Michael Landoed64b5e2017-06-09 03:19:04 +030044}
45
46export class ServerTypeUrl {
vasraz26e50292021-02-16 17:37:57 +000047 static RESOURCES = 'resources/';
48 static SERVICES = 'services/';
ys969316a9fce2020-01-19 13:50:02 +020049
vasraz26e50292021-02-16 17:37:57 +000050 public static toServerTypeUrl(componentType: ComponentType): string {
51 if (componentType == ComponentType.SERVICE) {
52 return ServerTypeUrl.SERVICES.slice(0, -1);
53 } else if (componentType == ComponentType.RESOURCE) {
54 return ServerTypeUrl.RESOURCES.slice(0, -1);
55 } else {
56 return undefined;
ys969316a9fce2020-01-19 13:50:02 +020057 }
vasraz26e50292021-02-16 17:37:57 +000058 }
Michael Landoed64b5e2017-06-09 03:19:04 +030059}
60
ys969316a9fce2020-01-19 13:50:02 +020061
Michael Landoed64b5e2017-06-09 03:19:04 +030062export class ResourceType {
vasraz26e50292021-02-16 17:37:57 +000063 static VF = 'VF';
64 static VL = 'VL';
65 static CP = 'CP';
66 static VFC = 'VFC';
67 static VFCMT = 'VFCMT';
68 static PNF = 'PNF';
69 static CVFC = 'CVFC';
70 static CONFIGURATION = 'Configuration';
71 static CR = 'CR';
Michael Landoed64b5e2017-06-09 03:19:04 +030072}
73
ys969316a9fce2020-01-19 13:50:02 +020074export class SdcElementType {
vasraz26e50292021-02-16 17:37:57 +000075 static GROUP = 'GROUP';
76 static POLICY = 'POLICY';
77 static SERVICE_PROXY = 'ServiceProxy'
ys969316a9fce2020-01-19 13:50:02 +020078}
vasraz26e50292021-02-16 17:37:57 +000079
Michael Landoed64b5e2017-06-09 03:19:04 +030080export class ComponentState {
vasraz26e50292021-02-16 17:37:57 +000081 static CERTIFICATION_IN_PROGRESS = 'CERTIFICATION_IN_PROGRESS';
82 static CERTIFIED = 'CERTIFIED';
83 static NOT_CERTIFIED_CHECKOUT = 'NOT_CERTIFIED_CHECKOUT';
84 static NOT_CERTIFIED_CHECKIN = 'NOT_CERTIFIED_CHECKIN';
85 static READY_FOR_CERTIFICATION = 'READY_FOR_CERTIFICATION';
Michael Landoed64b5e2017-06-09 03:19:04 +030086}
87
88export class DistributionStatus {
vasraz26e50292021-02-16 17:37:57 +000089 DISTRIBUTION_NOT_APPROVED = 'DISTRIBUTION_NOT_APPROVED';
90 DISTRIBUTION_APPROVED = 'DISTRIBUTION_APPROVED';
91 DISTRIBUTED = 'DISTRIBUTED';
92 DISTRIBUTION_REJECTED = 'DISTRIBUTION_REJECTED';
Michael Landoed64b5e2017-06-09 03:19:04 +030093}
94
95export class ArtifactGroupType {
vasraz26e50292021-02-16 17:37:57 +000096 static DEPLOYMENT = "DEPLOYMENT";
97 static INFORMATION = "INFORMATIONAL";
98 static SERVICE_API = "SERVICE_API";
99 static TOSCA = "TOSCA";
Michael Landoed64b5e2017-06-09 03:19:04 +0300100}
101
102export class ArtifactType {
ys969316a9fce2020-01-19 13:50:02 +0200103
vasraz26e50292021-02-16 17:37:57 +0000104 static DEPLOYMENT = "DEPLOYMENT";
105 static INFORMATION = "INFORMATIONAL";
106 static SERVICE_API = "SERVICE_API";
107 static HEAT_ENV = "HEAT_ENV";
108 static HEAT = "HEAT";
109 static HEAT_VOL = "HEAT_VOL";
110 static HEAT_NET = "HEAT_NET";
111 static VF_LICENSE = "VF_LICENSE";
112 static PM_DICTIONARY = "PM_DICTIONARY";
113 static VENDOR_LICENSE = "VENDOR_LICENSE";
114 static THIRD_PARTY_RESERVED_TYPES = {
115 WORKFLOW: "WORKFLOW",
116 NETWORK_CALL_FLOW: "NETWORK_CALL_FLOW",
117 AAI_SERVICE_MODEL: "AAI_SERVICE_MODEL",
118 AAI_VF_MODEL: "AAI_VF_MODEL",
119 AAI_VF_MODULE_MODEL: "AAI_VF_MODULE_MODEL",
120 AAI_VF_INSTANCE_MODEL: "AAI_VF_INSTANCE_MODEL"
121 };
122 static TOSCA = {TOSCA_TEMPLATE: "TOSCA_TEMPLATE", TOSCA_CSAR: "TOSCA_CSAR"};
123 static VES_EVENTS = "VES_EVENTS";
Michael Landoed64b5e2017-06-09 03:19:04 +0300124}
125
126export class SEVERITY {
vasraz26e50292021-02-16 17:37:57 +0000127 public static DEBUG = 'DEBUG';
128 public static INFO = 'INFO';
129 public static WARNING = 'WARNING';
130 public static ERROR = 'ERROR';
Michael Landoed64b5e2017-06-09 03:19:04 +0300131}
132
133export class PROPERTY_TYPES {
vasraz26e50292021-02-16 17:37:57 +0000134 public static STRING = 'string';
135 public static INTEGER = 'integer';
136 public static FLOAT = 'float';
137 public static BOOLEAN = 'boolean';
138 public static JSON = 'json';
139 public static MAP = 'map';
140 public static LIST = 'list';
141 public static SCALAR = 'scalar-unit';
142 public static SCALAR_FREQUENCY = 'scalar-unit.frequency';
143 public static SCALAR_SIZE = 'scalar-unit.size';
144 public static SCALAR_TIME = 'scalar-unit.time';
Michael Landoed64b5e2017-06-09 03:19:04 +0300145}
146
147export class SOURCES {
vasraz26e50292021-02-16 17:37:57 +0000148 public static A_AND_AI = 'A&AI';
149 public static ORDER = 'Order';
150 public static RUNTIME = 'Runtime';
Michael Landoed64b5e2017-06-09 03:19:04 +0300151}
152
153export class PROPERTY_DATA {
vasraz26e50292021-02-16 17:37:57 +0000154 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];
155 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];
156 public static SIMPLE_TYPES_COMPARABLE = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT];
157 public static SCALAR_TYPES = [PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME];
158 public static ROOT_DATA_TYPE = "tosca.datatypes.Root";
159 public static OPENECOMP_ROOT = "org.openecomp.datatypes.Root";
160 public static SUPPLEMENTAL_DATA = "supplemental_data";
161 public static SOURCES = [SOURCES.A_AND_AI, SOURCES.ORDER, SOURCES.RUNTIME];
Michael Landoed64b5e2017-06-09 03:19:04 +0300162}
163
164export class PROPERTY_VALUE_CONSTRAINTS {
vasraz26e50292021-02-16 17:37:57 +0000165 public static MAX_LENGTH = 2500;
166 public static JSON_MAX_LENGTH = 4096;
Michael Landoed64b5e2017-06-09 03:19:04 +0300167}
168
169export class Role {
vasraz26e50292021-02-16 17:37:57 +0000170 public static ADMIN = 'ADMIN';
171 public static DESIGNER = 'DESIGNER';
172 public static TESTER = 'TESTER';
173 public static OPS = 'OPS';
174 public static GOVERNOR = 'GOVERNOR';
Michael Landoed64b5e2017-06-09 03:19:04 +0300175}
176
vasraz26e50292021-02-16 17:37:57 +0000177export enum FormState {
178 CREATE,
179 UPDATE,
180 IMPORT,
181 VIEW
Michael Landoed64b5e2017-06-09 03:19:04 +0300182}
183
Michael Lando5b593492018-07-29 16:13:45 +0300184export class instantiationType {
vasraz26e50292021-02-16 17:37:57 +0000185 public static MACRO = 'Macro';
186 public static A_LA_CARTE = 'A-la-carte';
Michael Lando5b593492018-07-29 16:13:45 +0300187}
188
Michael Landoed64b5e2017-06-09 03:19:04 +0300189export class WorkspaceMode {
vasraz26e50292021-02-16 17:37:57 +0000190 public static CREATE = 'create';
191 public static EDIT = 'edit';
192 public static IMPORT = 'import';
193 public static VIEW = 'view';
Michael Landoed64b5e2017-06-09 03:19:04 +0300194}
195
196export class ImagesUrl {
vasraz26e50292021-02-16 17:37:57 +0000197 public static RESOURCE_ICONS = '/assets/styles/images/resource-icons/';
198 public static SERVICE_ICONS = '/assets/styles/images/service-icons/';
199 public static SERVICE_PROXY_ICONS = '/assets/styles/images/service-proxy-icons/';
200 public static SELECTED_UCPE_INSTANCE = '/assets/styles/images/resource-icons/selectedUcpeInstance.png';
201 public static SELECTED_CP_INSTANCE = '/assets/styles/images/resource-icons/selectedCPInstance.png';
202 public static SELECTED_VL_INSTANCE = '/assets/styles/images/resource-icons/selectedVLInstance.png';
203 public static CANVAS_PLUS_ICON = '/assets/styles/images/resource-icons/canvasPlusIcon.png';
204 public static CANVAS_TAG_ICON = '/assets/styles/images/canvas-tagging-icons/indication.svg';
205 public static CANVAS_POLICY_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/policy_added.svg';
206 public static CANVAS_GROUP_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/group_added.svg';
207 public static MODULE_ICON = '/assets/styles/images/resource-icons/module.png';
208 public static OPEN_MODULE_ICON = '/assets/styles/images/resource-icons/openModule.png';
209 public static OPEN_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/openModuleHover.png';
210 public static CLOSE_MODULE_ICON = '/assets/styles/images/resource-icons/closeModule.png';
211 public static CLOSE_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/closeModuleHover.png';
Michael Landoed64b5e2017-06-09 03:19:04 +0300212}
213
Michael Lando5b593492018-07-29 16:13:45 +0300214
215export class CanvasHandleTypes {
vasraz26e50292021-02-16 17:37:57 +0000216 public static ADD_EDGE = 'add-edge';
217 public static TAG_AVAILABLE = 'tag-available';
218 public static TAGGED_POLICY = 'tagged-policy';
219 public static TAGGED_GROUP = 'tagged-group';
Michael Lando5b593492018-07-29 16:13:45 +0300220}
221
Michael Landoed64b5e2017-06-09 03:19:04 +0300222export class ModalType {
vasraz26e50292021-02-16 17:37:57 +0000223 static STANDARD = 'standard';
224 static ERROR = 'error';
225 static ALERT = 'alert';
Michael Landoed64b5e2017-06-09 03:19:04 +0300226}
227
Avi Zivf5854fd2017-07-31 15:50:46 +0300228export class ServerErrors {
vasraz26e50292021-02-16 17:37:57 +0000229 static ERROR_TITLE = 'Error';
230 static DEFAULT_ERROR = 'Error getting response from server';
231 static MESSAGE_ERROR = 'Wrong error format from server';
232 static DOWNLOAD_ERROR = 'Download error';
Avi Zivf5854fd2017-07-31 15:50:46 +0300233}
234
Michael Landoed64b5e2017-06-09 03:19:04 +0300235export class GraphColors {
vasraz26e50292021-02-16 17:37:57 +0000236 public static NOT_CERTIFIED_LINK = 'rgb(218,31,61)';
237 public static VL_LINK = 'rgb(216,216,216)';
238 public static ACTIVE_LINK = '#30bdf2';
239 public static BASE_LINK = 'rgb(55,55,55)';
240 public static NODE_BACKGROUND_COLOR = 'rgba(46, 162, 157, 0.24)';
241 public static NODE_SHADOW_COLOR = 'rgba(198, 230, 228, 0.7)';
242 public static NODE_OVERLAPPING_BACKGROUND_COLOR = 'rgba(179, 10, 60, 0.24)';
243 public static NODE_OVERLAPPING_SHADOW_COLOR = 'rgba(236, 194, 206, 0.7)';
244 public static NODE_UCPE_CP = '#9063cd';
245 public static NODE_UCPE = '#fbfbfb';
246 public static NODE_SELECTED_BORDER_COLOR = '#30bdf2';
247 public static SERVICE_PATH_LINK = '#70208a';
Michael Landoed64b5e2017-06-09 03:19:04 +0300248}
vasraz26e50292021-02-16 17:37:57 +0000249
Michael Landoed64b5e2017-06-09 03:19:04 +0300250export class GraphTransactionLogText {
vasraz26e50292021-02-16 17:37:57 +0000251 public static REMOVE_TEMP_LINK = "remove tempLink";
252 public static DELETE_LINK = "delete link";
253 public static ADD_LINK = "delete link";
254 public static ADD_NODE = "adding node";
Michael Landoed64b5e2017-06-09 03:19:04 +0300255}
256
257export class GraphUIObjects {
vasraz26e50292021-02-16 17:37:57 +0000258 public static HANDLE_SIZE = 18;
259 public static NODE_OVERLAP_MIN_SIZE = 30;
260 public static DEFAULT_RESOURCE_WIDTH = 65;
261 public static SMALL_RESOURCE_WIDTH = 21;
262 public static LINK_MENU_HEIGHT = 420;
263 public static TOP_HEADER_HEIGHT = 200;
264 public static TOOLTIP_OFFSET_X = 50;
265 public static TOOLTIP_OFFSET_Y = 145;
266 public static TOOLTIP_LINK_OFFSET_X = 35;
267 public static TOOLTIP_LINK_OFFSET_Y = 75;
268 public static MENU_LINK_VL_HEIGHT_OFFSET = 250;
269 public static MENU_LINK_VL_WIDTH_OFFSET = 200;
270 public static MENU_LINK_SIMPLE_HEIGHT_OFFSET = 180;
271 public static MENU_LINK_SIMPLE_WIDTH_OFFSET = 130;
272 public static DIAGRAM_RIGHT_WIDTH_OFFSET = 248;
273 public static DIAGRAM_HEADER_OFFSET = 103;
274 public static DIAGRAM_PALETTE_WIDTH_OFFSET = 247;
275 // public static COMPOSITION_HEADER_OFFSET = 50;
276 // public static COMPOSITION_NODE_MENU_WIDTH = 230;
277 // public static COMPOSITION_NODE_MENU_HEIGHT = 200;
278 // public static COMPOSITION_RIGHT_PANEL_OFFSET = 300;
Michael Landoed64b5e2017-06-09 03:19:04 +0300279}
280
281
282export class States {
vasraz26e50292021-02-16 17:37:57 +0000283 public static WORKSPACE_GENERAL = 'workspace.general';
284 public static WORKSPACE_ACTIVITY_LOG = 'workspace.activity_log';
285 public static WORKSPACE_DEPLOYMENT_ARTIFACTS = 'workspace.deployment_artifacts';
286 public static WORKSPACE_PROPERTIES = 'workspace.properties';
287 public static WORKSPACE_SERVICE_INPUTS = 'workspace.service_inputs';
288 public static WORKSPACE_RESOURCE_INPUTS = 'workspace.resource_inputs';
289 public static WORKSPACE_ATTRIBUTES = 'workspace.attributes';
290 public static WORKSPACE_ATTRIBUTES_OUTPUTS = 'workspace.attributes_outputs';
291 public static WORKSPACE_INFORMATION_ARTIFACTS = 'workspace.information_artifacts';
292 public static WORKSPACE_TOSCA_ARTIFACTS = 'workspace.tosca_artifacts';
293 public static WORKSPACE_COMPOSITION = 'workspace.composition';
294 public static WORKSPACE_INTERFACE_OPERATION = 'workspace.interface_operation';
295 public static WORKSPACE_NETWORK_CALL_FLOW = 'workspace.network_call_flow';
296 public static WORKSPACE_MANAGEMENT_WORKFLOW = 'workspace.management_workflow';
297 public static WORKSPACE_DEPLOYMENT = 'workspace.deployment';
298 public static WORKSPACE_DISTRIBUTION = 'workspace.distribution';
299 public static WORKSPACE_PROPERTIES_ASSIGNMENT = 'workspace.properties_assignment';
300 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES = 'workspace.reqAndCap';
301 public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES_EDITABLE = 'workspace.reqAndCapEditable';
302 public static WORKSPACE_PLUGINS = 'workspace.plugins';
303 public static WORKSPACE_NG2 = 'workspace.ng2';
Michael Landoed64b5e2017-06-09 03:19:04 +0300304}
305
306export class EVENTS {
vasraz26e50292021-02-16 17:37:57 +0000307 static LEFT_PALETTE_UPDATE_EVENT = "leftPanelUpdateEvent";
308 static ON_CSAR_LOADING = "onCsarLoading";
309 static DOWNLOAD_ARTIFACT_FINISH_EVENT = "downloadArtifactFinishEvent";
310 static ON_WORKSPACE_SAVE_BUTTON_CLICK = "onWorkspaceSaveButtonClick";
311 static ON_WORKSPACE_SAVE_BUTTON_SUCCESS = "onWorkspaceSaveButtonSuccess";
312 static ON_WORKSPACE_SAVE_BUTTON_ERROR = "onWorkspaceSaveButtonError";
313 static ON_WORKSPACE_UNSAVED_CHANGES = "onWorkspaceUnsavedChanges";
314 static ON_CHECKOUT = "onCheckout";
315 static ON_LIFECYCLE_CHANGE_WITH_SAVE = "onLifecycleChangeWithSave";
316 static ON_LIFECYCLE_CHANGE = "onCheckout";
Michael Landoed64b5e2017-06-09 03:19:04 +0300317
vasraz26e50292021-02-16 17:37:57 +0000318 //Loader events
319 static SHOW_LOADER_EVENT = "showLoaderEvent";
320 static HIDE_LOADER_EVENT = "hideLoaderEvent";
321 static UPDATE_PANEL = 'updatePanel';
322 static ON_DISTRIBUTION_SUCCESS = 'onDistributionSuccess';
Michael Landoed64b5e2017-06-09 03:19:04 +0300323}
324
325
326export class UNIQUE_GROUP_PROPERTIES_NAME {
vasraz26e50292021-02-16 17:37:57 +0000327 public static MIN_VF_MODULE_INSTANCES = 'min_vf_module_instances';
328 public static MAX_VF_MODULE_INSTANCES = 'max_vf_module_instances';
329 public static INITIAL_COUNT = 'initial_count';
330 public static IS_BASE = 'isBase';
331 public static VF_MODULE_TYPE = 'vf_module_type';
332 public static VF_MODULE_LABEL = 'vf_module_label';
333 public static VF_MODULE_DESCRIPTION = 'vf_module_description';
334 public static VOLUME_GROUP = 'volume_group';
Michael Landoed64b5e2017-06-09 03:19:04 +0300335}
336
337
338export class GRAPH_EVENTS {
vasraz26e50292021-02-16 17:37:57 +0000339 static ON_COMPOSITION_GRAPH_DATA_LOADED = 'onCompositionGraphDataLoaded';
340 static ON_DEPLOYMENT_GRAPH_DATA_LOADED = 'onDeploymentGraphDataLoaded';
341 static ON_NODE_SELECTED = "onNodeSelected";
342 static ON_ZONE_INSTANCE_SELECTED = "onZoneInstanceSelected";
343 static ON_GRAPH_BACKGROUND_CLICKED = "onGraphBackgroundClicked";
344 static ON_PALETTE_COMPONENT_HOVER_IN = 'onPaletteComponentHoverIn';
345 static ON_PALETTE_COMPONENT_HOVER_OUT = 'onPaletteComponentHoverOut';
346 static ON_PALETTE_COMPONENT_DRAG_START = 'onPaletteComponentDragStart';
347 static ON_PALETTE_COMPONENT_DRAG_ACTION = 'onPaletteComponentDragAction';
348 static ON_PALETTE_COMPONENT_DROP = 'onPaletteComponentDrop';
349 static ON_PALETTE_COMPONENT_SHOW_POPUP_PANEL = 'onPaletteComponentShowPopupPanel';
350 static ON_PALETTE_COMPONENT_HIDE_POPUP_PANEL = 'onPaletteComponentHidePopupPanel';
351 static ON_COMPONENT_INSTANCE_NAME_CHANGED = 'onComponentInstanceNameChanged';
davsadec7af572021-02-19 17:13:51 +0000352 static ON_COMPONENT_INSTANCE_REQUIREMENT_EXTERNAL_CHANGED = 'onComponentInstanceRequirementExternalChanged'
andre.schmid2152a9a2021-05-05 15:31:04 +0100353 static ON_COMPONENT_INSTANCE_CAPABILITY_EXTERNAL_CHANGED = 'onComponentInstanceCapabilityExternalChanged'
vasraz26e50292021-02-16 17:37:57 +0000354 static ON_ZONE_INSTANCE_NAME_CHANGED = 'onZoneInstanceNameChanged';
355 static ON_DELETE_COMPONENT_INSTANCE = 'onDeleteComponentInstance';
356 static ON_DELETE_ZONE_INSTANCE = 'onDeleteZoneInstance';
357 static ON_DELETE_COMPONENT_INSTANCE_SUCCESS = 'onDeleteComponentInstanceSuccess';
358 static ON_DELETE_EDGE = 'onDeleteEdge';
359 static ON_INSERT_NODE_TO_UCPE = 'onInsertNodeToUCPE';
360 static ON_REMOVE_NODE_FROM_UCPE = 'onRemoveNodeFromUCPE';
361 static ON_VERSION_CHANGED = 'onVersionChanged';
362 static ON_CREATE_COMPONENT_INSTANCE = 'onCreateComponentInstance';
363 static ON_ADD_ZONE_INSTANCE_FROM_PALETTE = 'onAddZoneInstanceFromPalette';
364 static ON_CANVAS_TAG_START = 'onCanvasTagStart';
365 static ON_CANVAS_TAG_END = 'onCanvasTagEnd';
366 static ON_POLICY_INSTANCE_UPDATE = 'onPolicyInstanceUpdate';
367 static ON_GROUP_INSTANCE_UPDATE = 'onGroupInstanceUpdate';
368 static ON_SERVICE_PATH_CREATED = 'onServicePathCreated';
Michael Landoed64b5e2017-06-09 03:19:04 +0300369}
370
miriamec2ce9142019-02-13 15:17:26 +0200371export class DEPENDENCY_EVENTS {
vasraz26e50292021-02-16 17:37:57 +0000372 static ON_DEPENDENCY_CHANGE = 'onDependencyStatusChange';
miriamec2ce9142019-02-13 15:17:26 +0200373}
374
aribeiro6c3e3822020-07-02 14:42:40 +0100375export class SUBSTITUTION_FILTER_EVENTS {
vasraz26e50292021-02-16 17:37:57 +0000376 static ON_SUBSTITUTION_FILTER_CHANGE = 'onSubstitutionFilterChange';
aribeiro6c3e3822020-07-02 14:42:40 +0100377}
378
Michael Landoed64b5e2017-06-09 03:19:04 +0300379
380export class COMPONENT_FIELDS {
vasraz26e50292021-02-16 17:37:57 +0000381 static COMPONENT_INSTANCES_PROPERTIES = "componentInstancesProperties";
382 static COMPONENT_INSTANCES_INPUTS = "componentInstancesInputs";
383 static COMPONENT_INSTANCES_ATTRIBUTES = "componentInstancesAttributes";
384 static COMPONENT_INSTANCES_OUTPUTS = "componentInstancesOutputs";
385 static COMPONENT_ATTRIBUTES = "attributes";
386 static COMPONENT_INSTANCES = "componentInstances";
387 static COMPONENT_INSTANCES_RELATION = "componentInstancesRelations";
388 static COMPONENT_INPUTS = "inputs";
389 static COMPONENT_OUTPUTS = "outputs";
390 static COMPONENT_METADATA = "metadata";
391 static COMPONENT_DEPLOYMENT_ARTIFACTS = "deploymentArtifacts";
392 static COMPONENT_INFORMATIONAL_ARTIFACTS = "artifacts";
393 static COMPONENT_PROPERTIES = "properties";
394 static COMPONENT_CAPABILITIES = "capabilities";
395 static COMPONENT_CAPABILITIES_PROPERTIES = "instanceCapabiltyProperties";
396 static COMPONENT_REQUIREMENTS = "requirements";
397 static COMPONENT_TOSCA_ARTIFACTS = "toscaArtifacts";
398 static COMPONENT_POLICIES = "policies";
399 static COMPONENT_GROUPS = "groups";
400 static COMPONENT_INTERFACE_OPERATIONS = "interfaces";
401 static COMPONENT_INSTANCES_INTERFACES = "componentInstancesInterfaces";
402 static COMPONENT_NON_EXCLUDED_GROUPS = "nonExcludedGroups";
403 static COMPONENT_NON_EXCLUDED_POLICIES = "nonExcludedPolicies";
404 static FORWARDING_PATHS = "forwardingPaths";
405 static SERVICE_API_ARTIFACT = "serviceApiArtifacts";
Michael Landoed64b5e2017-06-09 03:19:04 +0300406}
Michael Landoa5445102018-03-04 14:53:33 +0200407
408export class SERVICE_FIELDS {
vasraz26e50292021-02-16 17:37:57 +0000409 static FORWARDING_PATHS = "forwardingPaths";
410 static NODE_FILTER = "nodeFilter";
411 static SUBSTITUTION_FILTER = "substitutionFilter";
Michael Landoa5445102018-03-04 14:53:33 +0200412}
413
Michael Landoed64b5e2017-06-09 03:19:04 +0300414export class API_QUERY_PARAMS {
vasraz26e50292021-02-16 17:37:57 +0000415 static INCLUDE = "include";
Michael Landoed64b5e2017-06-09 03:19:04 +0300416}
Michael Lando5b593492018-07-29 16:13:45 +0300417
418export enum TargetOrMemberType {
vasraz26e50292021-02-16 17:37:57 +0000419 COMPONENT_INSTANCES,
420 GROUPS
Michael Lando5b593492018-07-29 16:13:45 +0300421}
422
423export class CANVAS_TAG_MODE {
vasraz26e50292021-02-16 17:37:57 +0000424 static POLICY_TAGGING = "policy-tagging";
425 static POLICY_TAGGING_HOVER = "policy-tagging-hover";
426 static GROUP_TAGGING = "group-tagging";
427 static GROUP_TAGGING_HOVER = "group-tagging-hover";
Michael Lando5b593492018-07-29 16:13:45 +0300428}
ilanap94e77782020-04-01 14:25:35 +0300429
430export class DROPDOWN_OPTION_TYPE {
vasraz26e50292021-02-16 17:37:57 +0000431 static SIMPLE = "Simple";
432 static HEADER = "Header";
433 static DISABLE = "Disable";
434 static HORIZONTAL_LINE = "HorizontalLine";
ilanap94e77782020-04-01 14:25:35 +0300435}