Adding delete catalog
[ccsdk/cds.git] / cds-ui / client / src / app / common / constants / app-constants.ts
1 /*
2 ============LICENSE_START==========================================
3 ===================================================================
4 Copyright (C) 2018 IBM Intellectual Property. All rights reserved.
5
6 Modifications Copyright (C) 2019 TechMahindra
7 ===================================================================
8
9 Unless otherwise specified, all software contained herein is licensed
10 under the Apache License, Version 2.0 (the License);
11 you may not use this software except in compliance with the License.
12 You may obtain a copy of the License at
13
14     http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21 ============LICENSE_END============================================
22 */
23 export const GlobalContants = {
24     endpoints: {
25
26     },
27     // cbawizard: {
28     //     stepsRequired: {stepCount: 3, 
29     //                     steps: [{name:'CBA Metadata', componentURL:'/controllerBlueprint/selectTemplate'}, 
30     //                             {name:'Controller Blueprint Designer', componentURL:'/controllerBlueprint/modifyTemplate'}, 
31     //                             {name:'Test', componentURL:'/controllerBlueprint/testTemplate'},
32     //                             {name:'Deploy', componentURL:'/controllerBlueprint/deployTemplate'}]
33     //                     }
34     // }
35     cbawizard: {
36         stepsRequired:
37         {
38             stepCount: 4,
39             steps: [{
40                 name: 'CBA Metadata',
41                 componentURL: '/controllerBlueprint/selectTemplate',
42                 label: 'CBA Metadata',
43                 link: '/blueprint/selectTemplate',
44                 index: 0,
45                 component: 'SelectTemplateComponent'
46             },
47             {
48                 name: 'Controller Blueprint Designer',
49                 componentURL: '/controllerBlueprint/modifyTemplate',
50                 label: 'Controller Blueprint Designer',
51                 link: '/blueprint/modifyTemplate',
52                 index: 1,
53                 component: 'ModifyTemplateComponent'
54             },
55             {
56                 name: 'Test',
57                 componentURL: '/controllerBlueprint/testTemplate',
58                 label: 'Test',
59                 link: '/blueprint/testTemplate',
60                 index: 2,
61                 component: 'TestTemplateComponent'
62             },
63             {
64                 name: 'Deploy',
65                 componentURL: '/controllerBlueprint/deployTemplate',
66                 label: 'Deploy',
67                 link: '/blueprint/deployTemplate',
68                 index: 3,
69                 component: 'DeployTemplateComponent'
70             }]
71         }
72     },
73     datadictionary: {
74         stepsRequired:
75         {
76             stepCount: 3,
77             steps: [{
78                 name: 'Resource Creation', componentURL: '/dataDictionary/selectTemplate',
79                 label: 'Resource Creation',
80                 component: 'ResourceCreationComponent'
81
82             },
83             {
84                 name: 'Edit/Validate', componentURL: '/dataDictionary/modifyTemplate',
85                 label: 'Edit/Validate',
86                 component: 'ResourceEditComponent'
87             },
88             {
89                 name: 'Save', componentURL: '/dataDictionary/saveTemplate',
90                 label: 'Save Resource',
91                 component: 'SaveResourceComponent'
92             }]
93         }
94
95     }
96 };
97
98 export const BlueprintURLs = {
99    getAllBlueprints: '/controllerblueprint/all',
100    searchByTag: '/controllerblueprint/searchByTags/',
101    save: '/controllerblueprint/create-blueprint',
102    publish: '/controllerblueprint/publish',
103    enrich: '/controllerblueprint/enrich-blueprint',
104    download: '/controllerblueprint/download-blueprint/',
105    deploy:'/controllerblueprint/deploy-blueprint'
106 }
107
108 export const ResourceDictionaryURLs = {
109     saveResourceDictionary: '/resourcedictionary/save',
110     searchResourceDictionaryByTags: '/resourcedictionary/search',
111     searchResourceDictionaryByName: '',
112     getSources: '/resourcedictionary/source-mapping',
113     getModelType: '/resourcedictionary/model-type',
114     getDataType: '/resourcedictionary/model-type/by-definition/data_type'
115 }
116
117 export const ControllerCatalogURLs = {
118         searchControllerCatalogByTags: '/controllercatalog/search',
119         saveControllerCatalog: '/controllercatalog/save',
120         getDefinition: '/controllercatalog/model-type/by-definition',
121         getDerivedFrom: '/controllercatalog/model-type/by-derivedfrom',
122         deleteCatalog:'/controllercatalog'
123 }