blob: c78e12e2830072629a613d1bb9f3b220111b177b [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001export module Constants {
2
3 export class Component {
4 public static NAME = 'name';
5 public static SERVICE = 'service';
6 public static A_LA_CARTE = 'a la carte';
7 public static MACRO = 'Macro';
8 public static SUBSCRIBER_NAME = 'subscriberName';
9 public static OLDVERSION = 'oldversion';
10 public static SERVICE_TYPE = 'serviceType';
11 }
12
13 export class Path {
14 public static FORWARD_SLASH = '/';
15
16 public static AAI_GET_FULL_SUBSCRIBERS = '../../aai_get_full_subscribers';
17 public static AAI_REFRESH_FULL_SUBSCRIBERS = 'aai_refresh_full_subscribers';
18 public static AAI_GET_SUBSCRIBERS = '../../aai_get_subscribers';
19
20 public static AAI_GET_TENTANTS = '../../aai_get_tenants';
21 public static AAI_REFRESH_SUBSCRIBERS = 'aai_refresh_subscribers';
22 public static AAI_SUB_DETAILS = 'aai_sub_details';
23 public static AAI_SUB_VIEWEDIT = '../../aai_sub_viewedit';
24
25 public static GET_WORKFLOW = 'change-management/get_vnf_workflow_relation';
26 public static GET_MSO_WORKFLOWS = 'change-management/mso';
27 public static GET_SCHEDULER_CHANGE_MANAGEMENTS = 'change-management/scheduler';
28 public static CANCEL_SCHEDULE_REQUEST = 'change-management/scheduler/schedules';
29 public static ASSIGN = '?r=';
30 public static AAI_GET_SERVICE_INSTANCE_PATH = 'aai_get_service_instance/';
31 public static AAI_GET_SERVICES = '../../aai_get_services';
32 public static AAI_GET_AIC_ZONES = '../../aai_get_aic_zones';
33 public static AAI_GET_AIC_ZONE_FOR_PNF = 'aai_get_aic_zone_for_pnf/@globalCustomerId/@serviceType/@serviceInstanceId';
34 public static AAI_GET_SERVICES_BY_TYPE = 'aai_get_models_by_service_type';
35 public static AAI_GET_TENANTS = '../../aai_get_tenants/';
36 public static AAI_SUB_DETAILS_PATH = '../../aai_sub_details/';
37 public static AAI_GET_VERSION_BY_INVARIANT_ID = 'aai_get_version_by_invariant_id/';
38 public static SEARCH_SERVICE_INSTANCES = 'search_service_instances';
39 public static AAI_GET_VNF_DATA_PATH = 'aai_get_vnf_data/';
40 public static AAI_GET_VNF_BY_CUSTOMERID_AND_SERVICETYPE = 'get_vnf_data_by_globalid_and_service_type/';
41 public static AAI_GET_SERVICES_BY_OWNING_ENTITY_ID = 'aai_get_services_by_owning_entity_id';
42 public static AAI_GET_VNF_INFO = 'aai_get_vnf_information';
43 public static AAI_GET_PNF_INSTANCE = 'aai_get_service_instance_pnfs';
44 public static AAI_GET_VNF_INSTANCES_LIST = 'aai_get_vnf_instances';
45 public static AAI_GET_PNF_INSTANCES_LIST = 'aai_get_pnf_instances';
46 public static AAI_GET_BY_URI = 'aai_get_by_uri/';
47 public static AAI_GET_CONFIGURATION = 'aai_get_configuration/';
48 public static AAI_GET_TEST_ENVIRONMENTS = 'get_operational_environments?operationalEnvironmentType=';
49 public static GET_CATEGORY_PARAMETERS = '../../category_parameter';
50 public static PARAMETER_STANDARDIZATION_FAMILY = 'PARAMETER_STANDARDIZATION';
51 public static TENANT_ISOLATION_FAMILY = 'TENANT_ISOLATION';
52 public static ASDC_GETMODEL_PATH = 'asdc/getModel/';
53 public static CREATE_INSTANCE_PATH = '/models/services/createInstance';
54 public static AAI_GET_PNF_BY_NAME = 'aai_get_pnfs/pnf/';
55
56 public static GET_SYSTEM_PROP_VNF_PROV_STATUS_PATH = 'get_system_prop_vnf_prov_status';
57 public static GET_USER_ID = 'getuserID';
58 public static INSTANTIATE_ROOT_PATH = '#/instantiate?subscriberId=';
59 public static INSTANTIATE_PATH = '/instantiate';
60 public static INVALID_STRING = '/INVALID_STRING/';
61 public static INVALID_STRING_MSO_CREATE_SVC_INSTANCE = 'INVALID_STRING_mso_create_svc_instance';
62 public static MSO = 'mso';
63 public static MSO_CREATE_NW_INSTANCE = 'mso_create_nw_instance';
64 public static MSO_CREATE_NW_INSTANCE_PATH = 'mso_create_nw_instance/';
65 public static MSO_CREATE_SVC_INSTANCE = 'mso_create_svc_instance';
66 public static MSO_CREATE_VNF_INSTANCE = '../../mso/mso_create_vnf_instance/';
67 public static MSO_DELETE_SVC_INSTANCE_PATH = 'mso_delete_svc_instance/';
68 public static MSO_ACTIVATE_INSTANCE = 'mso/mso_activate_service_instance/@serviceInstanceId';
69 public static MSO_DEACTIVATE_INSTANCE = 'mso/mso_deactivate_service_instance/@serviceInstanceId';
70 public static MSO_CREATE_REALATIONSHIP = 'mso_add_relationship';
71 public static MSO_REMOVE_RELATIONSHIP = 'mso_remove_relationship';
72 public static SELECTED_SERVICE_SUB_PATH = '#/instances/subdetails?';
73 public static SELECTED_SERVICE_INSTANCE_SUB_PATH = 'serviceInstanceIdentifier=';
74 public static SELECTED_SUBSCRIBER_SUB_PATH = 'subscriberId=';
75 public static OWNING_ENTITY_SUB_PATH = 'owningEntity=';
76 public static PROJECT_SUB_PATH = 'project=';
77 public static SERVICE_TYPE_LIST_PATH = '#/instances/serviceTypes?serviceTypeList=';
78 public static SERVICE_MODLES_INSTANCES_SUBSCRIBERS_PATH = 'serviceModels.htm#/instances/subscribers';
79 public static SERVICES_DIST_STATUS_PATH = '../../rest/models/services?distributionStatus=';
80 public static SERVICES_PATH = '../../rest/models/services/';
81 public static SERVICETYPE_SUB_PATH = '&serviceType=';
82 public static SERVICEINSTANCEID_SUB_PATH = '&serviceInstanceId=';
83 public static SERVICEMODELS_INSTANCES_SERVICES_PATH = 'serviceModels.htm#/instances/services';
84 public static SERVICEMODELS_MODELS_SERVICES_PATH = 'serviceModels.htm#/models/services';
85 public static SUBDETAILS_SELECTEDSUBSCRIBER = '#subdetails?selectedSubscriber=';
86 public static SUBSCRIBERNAME_SUB_PATH = '&subscriberName=';
87 public static WELCOME_PATH = 'welcome.htm';
88 public static IS_PERMITTED_SUB_PATH = '&isPermitted=';
89 public static SERVICES_JOB_INFO_PATH = '../../asyncInstantiation';
90 public static CONFIGURATION_PATH = '../../get_property/{name}/defaultvalue';
91 public static SERVICES_JOB_AUDIT_PATH = '/auditStatus';
92 public static SERVICES_PROBE_PATH = "../../probe";
93 public static FEATURES_FLAG_PATH ="../../flags";
94
95 // Test Environment Urls =
96 public static OPERATIONAL_ENVIRONMENT_CREATE = 'operationalEnvironment/create';
97 public static OPERATIONAL_ENVIRONMENT_DEACTIVATE = 'operationalEnvironment/deactivate?operationalEnvironment=';
98 public static OPERATIONAL_ENVIRONMENT_ACTIVATE = 'operationalEnvironment/activate?operationalEnvironment=';
99 public static OPERATIONAL_ENVIRONMENT_STATUS = 'operationalEnvironment/requestStatus?requestId=';
100
101 }
102
103 export class Key {
104
105 public static DESCRIPTION = 'description';
106 public static GENERIC_VNF = 'generic-vnf';
107 public static GLOBAL_CUSTOMER_ID = 'global-customer-id';
108 public static GLOBAL_CUST_ID = 'globalCustomerId';
109 public static IN_MAINT = 'in-maint';
110 public static INVENTORY_RESPONSE_ITEMS = 'inventory-response-items';
111 public static INVENTORY_RESPONSE_ITEM = 'inventory-response-item';
112 public static L3_NETWORK = 'l3-network';
113 public static SUB_NET = 'subnet';
114 public static SUBNET_NAME = 'subnet-name';
115 public static SUBNET_ID = 'subnet-id';
116 public static GATEWAY_ADDRESS = 'gateway-address';
117 public static NETWORK_START_ADDRESS = 'network-start-address';
118 public static CIDR_MASK = 'cidr-mask';
119 public static MODEL_CUSTOMIZATION_ID = 'model-customization-id';
120 public static MODEL_INVAR_ID = 'model-invariant-id';
121 public static MODEL_VERSION_ID = 'model-version-id';
122 public static NETWORK_NAME = 'network-name';
123 public static NETWORK_ID = 'network-id';
124 public static NETWORK_TYPE = 'network-type';
125 public static NETWORKS = 'networks';
126 public static OPERATIONAL_STATUS = 'operational-status';
127 public static ORCHESTRATION_STATUS = 'orchestration-status';
128 public static PERCENT_PROGRESS = 'percent-progress';
129 public static PERSONA_MODEL_ID = 'persona-model-id';
130 public static PERSONA_MODEL_VERSION = 'persona-model-version';
131 public static PERSONA_MODEL_CUSTOMIZATION_ID = 'persona-model-customization-id';
132 public static PROV_STATUS = 'prov-status';
133
134 public static RESOURCE_LINK = 'resource-link';
135 public static RESULT_DATA = 'result-data';
136 public static SERVICE_DESCRIPTION = 'service-description';
137 public static SERVICE_ID = 'service-id';
138 public static SERVICE_INSTANCE = 'service-instance';
139 public static SERVICE_INSTANCES = 'service-instances';
140 public static SERVICE_INSTANCE_ID = 'service-instance-id';
141 public static SERVICE_INSTANCE_NAME = 'service-instance-name';
142 public static SERVICE_SUBSCRIPTION = 'service-subscription';
143 public static SERVICE_SUBSCRIPTIONS = 'service-subscriptions';
144 public static SERVICETYPE = 'service-type';
145 public static STATUS_MESSAGE = 'statusMessage';
146 public static SUBNAME = 'subscriber-name';
147 public static IS_PERMITTED = 'is-permitted';
148 public static TIMESTAMP = 'timestamp';
149 public static VF_MODULE = 'vf-module';
150 public static VF_MODULES = 'vfModules';
151 public static VF_MODULE_ID = 'vf-module-id';
152 public static VF_MODULE_NAME = 'vf-module-name';
153 public static VID = 'VID';
154 public static VNF_ID = 'vnf-id';
155 public static VNF_NAME = 'vnf-name';
156 public static VNF_TYPE = 'vnf-type';
157 public static VNFS = 'vnfs';
158 public static AVAILABLEVOLUMEGROUPS = 'availableVolumeGroups';
159 public static VOLUMEGROUPS = 'volumeGroups';
160 public static VOLUME_GROUP = 'volume-group';
161 public static VOLUME_GROUP_ID = 'volume-group-id';
162 public static VOLUME_GROUP_NAME = 'volume-group-name';
163 public static UPLOAD_SUPPLEMENTORY_DATA_FILE = 'uploadSupplementoryDataFile';
164 public static SUPPLEMENTORY_DATA_FILE = 'supplementoryDataFile';
165 public static ZONE_ID = 'zone-id';
166 public static ZONE_NAME = 'zone-name';
167 public static GENERIC_CONFIGURATION = 'configuration';
168 public static CONFIGURATIONS = 'configurations';
169 public static CONFIGURATION = 'configuration';
170 public static CONFIGURATION_NAME = 'configuration-name';
171 public static CONFIGURATION_TYPE = 'configuration-type';
172 public static CONFIGURATION_ID = 'configuration-id';
173 public static PORT = 'l-interface';
174 public static PORT_ID = 'interface-id';
175 public static PORT_NAME = 'interface-name';
176 public static PORT_MIRRORED = 'is-port-mirrored';
177 }
178
179 export class Status {
180 public static ALL = 'ALL';
181 public static COMPLETE = 'Complete';
182 public static DONE = 'Done';
183 public static ERROR = 'Error';
184 public static FAILED = 'Failed';
185 public static FAILED_SERVICE_MODELS_ASDC = 'Failed to get service models from SDC.';
186 public static FETCHING_SERVICE_TYPES = 'Fetching service types list from A&AI';
187 public static FETCHING_SERVICE_CATALOG = 'Fetching service catalog from AAI. Please wait.';
188 public static FETCHING_SERVICE_CATALOG_ASDC = 'Fetching service catalog from SDC. Please wait.';
189 public static FETCHING_SUB_DETAILS = 'Fetching subscriber details from A&AI for ';
190 public static FETCHING_SERVICE_INST_DATA = 'Fetching service instance data from A&AI for service-instance-id=';
191 public static FETCHING_SUBSCRIBER_LIST_AAI = 'Fetching subscriber list from A&AI...';
192 public static IN_PROGRESS = 'In Progress';
193 public static IS_SUCCESSFUL = ' isSuccessful = ';
194 public static MSO_FAILURE = 'msoFailure';
195 public static NONE = 'None';
196 public static NOT_FOUND = 'Not Found';
197 public static NO_SERVICE_SUBSCRIPTION_FOUND = 'No Service Subscription Found';
198 public static SUBMITTING_REQUEST = 'Submitting Request';
199 public static SUCCESS_VNF_PROV_STATUS = 'Successfully set the VNF\'s Prov_Status to ';
200 public static UNLOCKED = 'Unlocked';
201 public static AAI_ACTIVE = 'Active';
202 public static AAI_INACTIVE = 'Inactive';
203 public static AAI_CREATED = 'Created';
204 public static AAI_ENABLED = 'Enabled';
205 public static AAI_DISABLED = 'Disabled';
206 }
207
208 export class Error {
209 public static AAI = 'A&AI failure - see log below for details';
210 public static AAI_ERROR = 'A&AI Error';
211 public static AAI_FETCHING_CUST_DATA = 'Failed to fetch customer data from A&AI= Response Code= ';
212 public static FETCHING_SERVICE_TYPES = 'Failed to fetch service types from A&AI= Response Code= ';
213 public static FETCHING_SERVICES = 'Failed to fetch services from A&AI= Response Code= ';
214 public static FETCHING_SERVICE_INSTANCE_DATA = 'Failed to fetch service instance data from A&AI= Response Code= ';
215 public static INVALID_INSTANCE_NAME = 'Invalid instance name= ';
216 // tslint:disable-next-line:max-line-length
217 public static INSTANCE_NAME_VALIDATE = 'The instance name must contain only alphanumeric or \'_-.\' characters; and must start with an alphabetic character';
218 public static INVALID_LIST = 'Invalid list parameter= ';
219 public static INVALID_MAP = 'Invalid map parameter= ';
220 public static LIST_VALIDATE = 'A list parameter value must have the following syntax= \'[<value1>;\.\.\.;<valueN>]\'';
221 // tslint:disable-next-line:max-line-length
222 public static MAP_VALIDATE = 'A map parameter value must have the following syntax= \'{ <entry_key_1>= <entry_value_1>; \.\.\.; <entry_key_n>= <entry_value_n> }\'';
223 public static MAX_POLLS_EXCEEDED = 'Maximum number of poll attempts exceeded';
224 public static MISSING_DATA = 'Missing data';
225 public static MODEL_VERSION_ID_MISSING = 'Error= model-version-id is not populated in A&AI';
226 public static MSO = 'MSO failure - see log below for details';
227 public static NO_MATCHING_MODEL = 'No matching model found matching the persona Model Id = ';
228 public static NO_MATCHING_MODEL_AAI = 'No matching model found matching the A&AI model version ID = ';
229 public static SELECT = 'Please select a subscriber or enter a service instance';
230 public static SERVICE_INST_DNE = 'That service instance does not exist. Please try again.';
231 public static SYSTEM_FAILURE = 'System failure';
232 public static INVALID_DATA_FORMAT = 'Invalid data format.Please check your file content whether it is not in json or not.';
233 public static MISSING_FILE = 'Please Select JSON File.';
234
235 public static MISSING_VNF_DETAILS = 'Missing required information.\n' +
236 'Please open and fill in the details.\n';
237 }
238
239 export class EventType {
240 public static COMPONENT_STATUS = 'ComponentStatus';
241 public static CREATE_COMPONENT = 'createComponent';
242 public static DELETE_RESUME_COMPONENT = 'deleteResumeComponent';
243 }
244
245 export class ServicePopup {
246 public static TITLE = 'Create a new service instance';
247 public static TOOLTIP_UUID = 'Unique identifier for this service in this version.';
248 public static TOOLTIP_INVARIANT_UUID = 'Unique identifier for this service cross versions.';
249
250 }
251
252 export class Parameter {
253 public static BOOLEAN = "boolean";
254 public static SELECT = "select";
255 public static MULTI_SELECT = "multi_select";
256 public static STRING = "string";
257 public static NUMBER = "number";
258 public static VALID_VALUES = "valid_values";
259 public static EQUAL = "equal";
260 public static LENGTH = "length";
261 public static MAX_LENGTH = "max_length";
262 public static MIN_LENGTH = "min_length";
263 public static IN_RANGE = "in_range";
264 public static CONSTRAINTS = "constraints";
265 public static OPERATOR = "operator";
266 public static CONSTRAINT_VALUES = "constraintValues";
267 public static DEFAULT = "default";
268 public static DESCRIPTION = "description";
269 public static TYPE = "type";
270 public static INTEGER = "integer";
271 public static RANGE = "range";
272 public static LIST = "list";
273 public static MAP = "map";
274 public static REQUIRED = "required";
275 public static GREATER_THAN = "greater_than";
276 public static LESS_THAN = "less_than";
277 public static GREATER_OR_EQUAL = "greater_or_equal";
278 public static LESS_OR_EQUAL = "less_or_equal";
279 public static DISPLAY_NAME = "displayName";
280 public static CHECKBOX ='checkbox';
281 public static FILE ='file';
282 }
283
284 export class AuditInfoModal{
285 public static TITLE = 'Service Instantiation Information';
286 }
287}