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