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