Merge "add single function to action and save it to frontend store."
[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     download: '/controllerblueprint/download-blueprint/',
98     deploy: '/controllerblueprint/deploy-blueprint',
99     getMetaDate: '/controllerblueprint/meta-data/',
100     countOfAllBluePrints: '/controllerblueprint/list/count',
101     getMetaDatePageable: '/controllerblueprint/metadata/paged',
102     getBlueprintByName: '/controllerblueprint/by-name/'
103 };
104
105 export const ResourceDictionaryURLs = {
106     saveResourceDictionary: '/resourcedictionary/save',
107     searchResourceDictionaryByTags: '/resourcedictionary/search',
108     searchResourceDictionaryByName: '',
109     searchResourceDictionaryByNames: '/resourcedictionary/search/by-names',
110     getSources: '/resourcedictionary/source-mapping',
111     getModelType: '/resourcedictionary/model-type',
112     getResourceDictionary: '/resourcedictionary/model-type/by-definition'
113 };
114
115 export const ControllerCatalogURLs = {
116     searchControllerCatalogByTags: '/controllercatalog/search',
117     saveControllerCatalog: '/controllercatalog/save',
118     getDefinition: '/controllercatalog/model-type/by-definition',
119     getDerivedFrom: '/controllercatalog/model-type/by-derivedfrom'
120 };
121
122
123 export const ActionElementTypeName = 'app.ActionElement';