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