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