dbc2c98610095a1479995bcd6dad239d309d0667
[osm/NG-UI.git] / src / environments / environment.ts
1 /*
2  Copyright 2020 TATA ELXSI
3
4  Licensed under the Apache License, Version 2.0 (the 'License');
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15
16  Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17  */
18 /**
19  * @file environment variables
20  * This file can be replaced during build by using the `fileReplacements` array.
21  * `npm run build` replaces `environment.ts` with `environment.prod.ts`.
22  * The list of file replacements can be found in `angular.json`.
23  */
24
25 import { version } from 'PACKAGEJSON';
26
27 /** OSM Admin URL @constant */
28 const OSM_ADMIN_ENDPOINT: string = 'osm/admin/v1/';
29 /** OSM NS LCM URL @constant */
30 const OSM_NSLCM_ENDPOINT: string = 'osm/nslcm/v1/';
31 /** OSM NST URL @constant */
32 const OSM_NST_ENDPOINT: string = 'osm/nst/v1/';
33 /** OSM NSI LCM URL @constant */
34 const OSM_NSILCM_ENDPOINT: string = 'osm/nsilcm/v1/';
35 /** OSM VNFD PACKAGES URL @constant */
36 const OSM_VNFDPACKAGE_ENDPOINT: string = 'osm/vnfpkgm/v1/';
37 /** OSM PDU URL @constant */
38 const OSM_PDU_ENDPOINT: string = 'osm/pdu/v1/';
39 /** OSM NSD URL @constant */
40 const OSM_NSD_ENDPOINT: string = 'osm/nsd/v1/';
41 /** Assets root path @constant */
42 const ASSETS_PATH: string = 'assets/';
43 /** OSM Version @constant */
44 const OSM_VERSION: string = 'osm/version';
45 /** Grafana End-Point @constant */
46 // tslint:disable-next-line: no-http-string
47 const GRAFANA_ENDPOINT: string = 'http://' + window.location.hostname + ':3000';
48
49 /** Exporting a const @exports environment */
50 // tslint:disable-next-line: typedef
51 export const environment = {
52     production: false,
53     packageSize: 15,
54     paginationNumber: 10, //Possible values are 10, 25, 50, 100
55     packageVersion: version,
56     // tslint:disable-next-line: no-http-string
57     MAPLATLONGAPI_URL: 'http://photon.komoot.de/api/?q={value}&limit=5',
58     GENERATETOKEN_URL: OSM_ADMIN_ENDPOINT + 'tokens',
59     PROJECTS_URL: OSM_ADMIN_ENDPOINT + 'projects',
60     USERS_URL: OSM_ADMIN_ENDPOINT + 'users',
61     ROLES_URL: OSM_ADMIN_ENDPOINT + 'roles',
62     VIMACCOUNTS_URL: OSM_ADMIN_ENDPOINT + 'vim_accounts',
63     WIMACCOUNTS_URL: OSM_ADMIN_ENDPOINT + 'wim_accounts',
64     SDNCONTROLLER_URL: OSM_ADMIN_ENDPOINT + 'sdns',
65     K8SCLUSTER_URL: OSM_ADMIN_ENDPOINT + 'k8sclusters',
66     K8REPOS_URL: OSM_ADMIN_ENDPOINT + 'k8srepos',
67     NETWORKSLICETEMPLATE_URL: OSM_NST_ENDPOINT + 'netslice_templates',
68     NETWORKSLICETEMPLATECONTENT_URL: OSM_NST_ENDPOINT + 'netslice_templates_content',
69     NSDINSTANCES_URL: OSM_NSLCM_ENDPOINT + 'ns_instances',
70     VNFINSTANCES_URL: OSM_NSLCM_ENDPOINT + 'vnfrs',
71     NSINSTANCESCONTENT_URL: OSM_NSLCM_ENDPOINT + 'ns_instances_content',
72     NSHISTORYOPERATIONS_URL: OSM_NSLCM_ENDPOINT + 'ns_lcm_op_occs',
73     NETWORKSLICEINSTANCESCONTENT_URL: OSM_NSILCM_ENDPOINT + 'netslice_instances_content',
74     NSTHISTORYOPERATIONS_URL: OSM_NSILCM_ENDPOINT + 'nsi_lcm_op_occs',
75     NSDESCRIPTORSCONTENT_URL: OSM_NSD_ENDPOINT + 'ns_descriptors_content',
76     NSDESCRIPTORS_URL: OSM_NSD_ENDPOINT + 'ns_descriptors',
77     VNFPACKAGESCONTENT_URL: OSM_VNFDPACKAGE_ENDPOINT + 'vnf_packages_content',
78     VNFPACKAGES_URL: OSM_VNFDPACKAGE_ENDPOINT + 'vnf_packages',
79     PDUINSTANCE_URL: OSM_PDU_ENDPOINT + 'pdu_descriptors',
80     PERMISSIONS_CONFIG_FILE: ASSETS_PATH + 'config/rolePermissions.json',
81     GRAFANA_URL: GRAFANA_ENDPOINT + '/d',
82     DOMAIN_URL: OSM_ADMIN_ENDPOINT + 'domains',
83     OSM_VERSION_URL: OSM_VERSION
84 };