Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * SDC |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
Piotr Darosz | 2c25cba | 2019-03-27 15:25:50 +0100 | [diff] [blame] | 6 | * Modifications Copyright (C) 2019 Nokia. All rights reserved. |
Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 7 | * ================================================================================ |
| 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 Amit | cb1095e | 2018-01-22 20:55:42 +0200 | [diff] [blame] | 11 | * |
Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
Idan Amit | cb1095e | 2018-01-22 20:55:42 +0200 | [diff] [blame] | 13 | * |
Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 14 | * 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 Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 22 | /** |
| 23 | * Created by obarda on 2/18/2016. |
| 24 | */ |
| 25 | |
| 26 | export let DEFAULT_ICON = 'defaulticon'; |
| 27 | export let CP_END_POINT = 'CpEndPoint'; |
| 28 | export let CHANGE_COMPONENT_CSAR_VERSION_FLAG = 'changeComponentCsarVersion'; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 29 | export let PREVIOUS_CSAR_COMPONENT = 'previousCsarComponent' |
| 30 | |
| 31 | |
| 32 | export class GeneralStatus { |
| 33 | static OK = 'OK'; |
| 34 | static GENERAL_ERROR = 'GENERAL_ERROR'; |
| 35 | } |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 36 | |
| 37 | export class ComponentType { |
| 38 | static SERVICE = 'SERVICE'; |
| 39 | static RESOURCE = 'RESOURCE'; |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 40 | static SERVICE_PROXY = 'ServiceProxy' |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | export class ServerTypeUrl { |
| 44 | static RESOURCES = 'resources/'; |
| 45 | static SERVICES = 'services/'; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 46 | |
| 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 Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 56 | } |
| 57 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 58 | |
| 59 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 60 | export class ResourceType { |
| 61 | static VF = 'VF'; |
| 62 | static VL = 'VL'; |
| 63 | static CP = 'CP'; |
| 64 | static VFC = 'VFC'; |
| 65 | static VFCMT = 'VFCMT'; |
Tal Gitelman | 153a358 | 2017-07-03 20:16:55 +0300 | [diff] [blame] | 66 | static PNF = 'PNF'; |
Michael Lando | 75aacbb | 2017-07-17 21:12:03 +0300 | [diff] [blame] | 67 | static CVFC = 'CVFC'; |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 68 | static CONFIGURATION = 'Configuration'; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 69 | static CR = 'CR'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 70 | } |
| 71 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 72 | export class SdcElementType { |
| 73 | static GROUP = 'GROUP'; |
| 74 | static POLICY = 'POLICY'; |
| 75 | static SERVICE_PROXY = 'ServiceProxy' |
| 76 | } |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 77 | export 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 | |
| 85 | export class DistributionStatus { |
| 86 | DISTRIBUTION_NOT_APPROVED = 'DISTRIBUTION_NOT_APPROVED'; |
| 87 | DISTRIBUTION_APPROVED = 'DISTRIBUTION_APPROVED'; |
| 88 | DISTRIBUTED = 'DISTRIBUTED'; |
| 89 | DISTRIBUTION_REJECTED = 'DISTRIBUTION_REJECTED'; |
| 90 | } |
| 91 | |
| 92 | export class ArtifactGroupType { |
| 93 | static DEPLOYMENT = "DEPLOYMENT"; |
| 94 | static INFORMATION = "INFORMATIONAL"; |
| 95 | static SERVICE_API = "SERVICE_API"; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 96 | static TOSCA = "TOSCA"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 97 | } |
| 98 | |
| 99 | export class ArtifactType { |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 100 | |
| 101 | static DEPLOYMENT = "DEPLOYMENT"; |
| 102 | static INFORMATION = "INFORMATIONAL"; |
| 103 | static SERVICE_API = "SERVICE_API"; |
| 104 | static HEAT_ENV = "HEAT_ENV"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 105 | static HEAT = "HEAT"; |
| 106 | static HEAT_VOL = "HEAT_VOL"; |
| 107 | static HEAT_NET = "HEAT_NET"; |
| 108 | static VF_LICENSE = "VF_LICENSE"; |
Tomasz Golabek | c5ef980 | 2020-02-19 16:46:44 +0100 | [diff] [blame^] | 109 | static PM_DICTIONARY = "PM_DICTIONARY"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 110 | 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 Darosz | 2c25cba | 2019-03-27 15:25:50 +0100 | [diff] [blame] | 120 | static VES_EVENTS = "VES_EVENTS"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | export class SEVERITY { |
| 124 | public static DEBUG = 'DEBUG'; |
| 125 | public static INFO = 'INFO'; |
| 126 | public static WARNING = 'WARNING'; |
| 127 | public static ERROR = 'ERROR'; |
| 128 | } |
| 129 | |
| 130 | export 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 Gitelman | 153a358 | 2017-07-03 20:16:55 +0300 | [diff] [blame] | 138 | 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 Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | export class SOURCES { |
| 145 | public static A_AND_AI = 'A&AI'; |
| 146 | public static ORDER = 'Order'; |
| 147 | public static RUNTIME = 'Runtime'; |
| 148 | } |
| 149 | |
| 150 | export class PROPERTY_DATA { |
Tal Gitelman | 153a358 | 2017-07-03 20:16:55 +0300 | [diff] [blame] | 151 | 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]; |
miriame | c2ce914 | 2019-02-13 15:17:26 +0200 | [diff] [blame] | 153 | public static SIMPLE_TYPES_COMPARABLE = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT]; |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 154 | public static SCALAR_TYPES = [PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME]; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 155 | public static ROOT_DATA_TYPE = "tosca.datatypes.Root"; |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 156 | public static OPENECOMP_ROOT = "org.openecomp.datatypes.Root"; |
| 157 | public static SUPPLEMENTAL_DATA = "supplemental_data"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 158 | public static SOURCES = [SOURCES.A_AND_AI, SOURCES.ORDER, SOURCES.RUNTIME]; |
| 159 | } |
| 160 | |
| 161 | export class PROPERTY_VALUE_CONSTRAINTS { |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 162 | public static MAX_LENGTH = 2500; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 163 | public static JSON_MAX_LENGTH = 4096; |
| 164 | } |
| 165 | |
| 166 | export class Role { |
| 167 | public static ADMIN = 'ADMIN'; |
| 168 | public static DESIGNER = 'DESIGNER'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 169 | public static TESTER = 'TESTER'; |
| 170 | public static OPS = 'OPS'; |
| 171 | public static GOVERNOR = 'GOVERNOR'; |
| 172 | } |
| 173 | |
| 174 | export enum FormState{ |
| 175 | CREATE, |
| 176 | UPDATE, |
| 177 | IMPORT, |
| 178 | VIEW |
| 179 | } |
| 180 | |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 181 | export class instantiationType { |
| 182 | public static MACRO = 'Macro'; |
| 183 | public static A_LA_CARTE = 'A-la-carte'; |
| 184 | } |
| 185 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 186 | export class WorkspaceMode { |
| 187 | public static CREATE = 'create'; |
| 188 | public static EDIT = 'edit'; |
| 189 | public static IMPORT = 'import'; |
| 190 | public static VIEW = 'view'; |
| 191 | } |
| 192 | |
| 193 | export class ImagesUrl { |
| 194 | public static RESOURCE_ICONS = '/assets/styles/images/resource-icons/'; |
| 195 | public static SERVICE_ICONS = '/assets/styles/images/service-icons/'; |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 196 | public static SERVICE_PROXY_ICONS = '/assets/styles/images/service-proxy-icons/'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 197 | 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 Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 201 | 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 Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 204 | 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 Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 211 | |
| 212 | export 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 Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 219 | export class ModalType { |
| 220 | static STANDARD = 'standard'; |
| 221 | static ERROR = 'error'; |
| 222 | static ALERT = 'alert'; |
| 223 | } |
| 224 | |
Avi Ziv | f5854fd | 2017-07-31 15:50:46 +0300 | [diff] [blame] | 225 | export 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'; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 229 | static DOWNLOAD_ERROR = 'Download error'; |
Avi Ziv | f5854fd | 2017-07-31 15:50:46 +0300 | [diff] [blame] | 230 | } |
| 231 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 232 | export 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 Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 244 | public static SERVICE_PATH_LINK = '#70208a'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 245 | } |
| 246 | export 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 | |
| 253 | export class GraphUIObjects { |
Idan Amit | cb1095e | 2018-01-22 20:55:42 +0200 | [diff] [blame] | 254 | public static HANDLE_SIZE = 18; |
| 255 | public static NODE_OVERLAP_MIN_SIZE = 30; |
Michael Lando | 9db4052 | 2017-07-22 17:10:02 +0300 | [diff] [blame] | 256 | public static DEFAULT_RESOURCE_WIDTH = 65; |
| 257 | public static SMALL_RESOURCE_WIDTH = 21; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 258 | 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 | |
| 278 | export class States { |
| 279 | public static WORKSPACE_GENERAL = 'workspace.general'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 280 | public static WORKSPACE_ACTIVITY_LOG = 'workspace.activity_log'; |
| 281 | public static WORKSPACE_DEPLOYMENT_ARTIFACTS = 'workspace.deployment_artifacts'; |
| 282 | public static WORKSPACE_PROPERTIES = 'workspace.properties'; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 283 | public static WORKSPACE_SERVICE_INPUTS = 'workspace.service_inputs'; |
| 284 | public static WORKSPACE_RESOURCE_INPUTS = 'workspace.resource_inputs'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 285 | public static WORKSPACE_ATTRIBUTES = 'workspace.attributes'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 286 | public static WORKSPACE_INFORMATION_ARTIFACTS = 'workspace.information_artifacts'; |
| 287 | public static WORKSPACE_TOSCA_ARTIFACTS = 'workspace.tosca_artifacts'; |
| 288 | public static WORKSPACE_COMPOSITION = 'workspace.composition'; |
Arielk | 802bd2a | 2018-04-16 15:37:39 +0300 | [diff] [blame] | 289 | public static WORKSPACE_INTERFACE_OPERATION = 'workspace.interface_operation'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 290 | 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'; |
miriame | 41ee9cb | 2019-03-04 13:49:15 +0200 | [diff] [blame] | 296 | public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES_EDITABLE = 'workspace.reqAndCapEditable'; |
Idan Amit | eedaaf9 | 2018-01-31 13:27:33 +0200 | [diff] [blame] | 297 | public static WORKSPACE_PLUGINS = 'workspace.plugins'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 298 | public static WORKSPACE_NG2 = 'workspace.ng2'; |
| 299 | } |
| 300 | |
| 301 | export class EVENTS { |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 302 | static LEFT_PALETTE_UPDATE_EVENT = "leftPanelUpdateEvent"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 303 | 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 Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 308 | static ON_WORKSPACE_UNSAVED_CHANGES = "onWorkspaceUnsavedChanges"; |
Michael Lando | b3d4898 | 2017-06-11 14:22:02 +0300 | [diff] [blame] | 309 | static ON_CHECKOUT = "onCheckout"; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 310 | static ON_LIFECYCLE_CHANGE_WITH_SAVE = "onLifecycleChangeWithSave"; |
| 311 | static ON_LIFECYCLE_CHANGE = "onCheckout"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 312 | |
| 313 | //Loader events |
| 314 | static SHOW_LOADER_EVENT = "showLoaderEvent"; |
| 315 | static HIDE_LOADER_EVENT = "hideLoaderEvent"; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 316 | static UPDATE_PANEL = 'updatePanel'; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 317 | static ON_DISTRIBUTION_SUCCESS = 'onDistributionSuccess'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 318 | } |
| 319 | |
| 320 | |
| 321 | export 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 | |
| 333 | export 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 Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 337 | static ON_ZONE_INSTANCE_SELECTED = "onZoneInstanceSelected"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 338 | 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'; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 343 | static ON_PALETTE_COMPONENT_DROP = 'onPaletteComponentDrop'; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 344 | static ON_PALETTE_COMPONENT_SHOW_POPUP_PANEL = 'onPaletteComponentShowPopupPanel'; |
| 345 | static ON_PALETTE_COMPONENT_HIDE_POPUP_PANEL = 'onPaletteComponentHidePopupPanel'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 346 | static ON_COMPONENT_INSTANCE_NAME_CHANGED = 'onComponentInstanceNameChanged'; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 347 | static ON_ZONE_INSTANCE_NAME_CHANGED = 'onZoneInstanceNameChanged'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 348 | static ON_DELETE_COMPONENT_INSTANCE = 'onDeleteComponentInstance'; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 349 | static ON_DELETE_ZONE_INSTANCE = 'onDeleteZoneInstance'; |
| 350 | static ON_DELETE_COMPONENT_INSTANCE_SUCCESS = 'onDeleteComponentInstanceSuccess'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 351 | 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 Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 356 | 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'; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 361 | static ON_SERVICE_PATH_CREATED = 'onServicePathCreated'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 362 | } |
| 363 | |
miriame | c2ce914 | 2019-02-13 15:17:26 +0200 | [diff] [blame] | 364 | export class DEPENDENCY_EVENTS { |
| 365 | static ON_DEPENDENCY_CHANGE = 'onDependencyStatusChange'; |
| 366 | } |
| 367 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 368 | |
| 369 | export class COMPONENT_FIELDS { |
| 370 | static COMPONENT_INSTANCES_PROPERTIES = "componentInstancesProperties"; |
ojasdubey | 4192e3c | 2019-03-18 14:15:03 +0530 | [diff] [blame] | 371 | static COMPONENT_INSTANCES_INPUTS = "componentInstancesInputs"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 372 | 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"; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 382 | static COMPONENT_CAPABILITIES_PROPERTIES = "instanceCapabiltyProperties"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 383 | static COMPONENT_REQUIREMENTS = "requirements"; |
| 384 | static COMPONENT_TOSCA_ARTIFACTS = "toscaArtifacts"; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 385 | static COMPONENT_POLICIES = "policies"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 386 | static COMPONENT_GROUPS = "groups"; |
Arielk | 802bd2a | 2018-04-16 15:37:39 +0300 | [diff] [blame] | 387 | static COMPONENT_INTERFACE_OPERATIONS = "interfaces"; |
ojasdubey | 4192e3c | 2019-03-18 14:15:03 +0530 | [diff] [blame] | 388 | static COMPONENT_INSTANCES_INTERFACES = "componentInstancesInterfaces"; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 389 | static COMPONENT_NON_EXCLUDED_GROUPS = "nonExcludedGroups"; |
| 390 | static COMPONENT_NON_EXCLUDED_POLICIES = "nonExcludedPolicies"; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 391 | static FORWARDING_PATHS = "forwardingPaths"; |
| 392 | static SERVICE_API_ARTIFACT = "serviceApiArtifacts"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 393 | } |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 394 | |
| 395 | export class SERVICE_FIELDS { |
| 396 | static FORWARDING_PATHS = "forwardingPaths"; |
miriame | c2ce914 | 2019-02-13 15:17:26 +0200 | [diff] [blame] | 397 | static NODE_FILTER = "nodeFilter"; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 398 | } |
| 399 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 400 | export class API_QUERY_PARAMS { |
| 401 | static INCLUDE = "include"; |
| 402 | } |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 403 | |
| 404 | export enum TargetOrMemberType { |
| 405 | COMPONENT_INSTANCES, |
| 406 | GROUPS |
| 407 | } |
| 408 | |
| 409 | export 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 | } |