blob: 9bcf89c0c1e039743a3b0d9863e53bc31e1fcb15 [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001const SDC_MENU_CONFIG = {
2 "roles":{
3 "ADMIN":{
4 "title": "Admin's Workspace",
5 "pages":[],
6 "states":{
7 "NOT_CERTIFIED_CHECKOUT":{
8 "ANY":[
9 {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest" , "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
10 ]
11 },
12 "NOT_CERTIFIED_CHECKIN": {
13 "ANY": [
14 {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
15 ]
16 },
17 "READY_FOR_CERTIFICATION": {
18 "ANY":[
19 ]
20 },
21 "CERTIFICATION_IN_PROGRESS":{
22 "ANY":[
23 ]
24 },
25 "CERTIFIED":{
26 "ANY":[
27 ]
28 }
29 }
30 },
31 "DESIGNER":{
32 "title": "Designer's Workspace",
33 "pages":[],
34 "dashboard": {
Michael Lando75aacbb2017-07-17 21:12:03 +030035 "showCreateNew": true
Michael Landoed64b5e2017-06-09 03:19:04 +030036 },
37 "changeLifecycleStateButtons":{
38 "NOT_CERTIFIED_CHECKOUT":{ "submitForTesting": {"text":"Submit for Testing", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"},
39 "checkIn": {"text":"Check in", "url":"lifecycleState/CHECKIN", "confirmationModal": "lifecycleState/CHECKIN"},
40 "deleteVersion": {"text":"Delete Version", "url":"lifecycleState/UNDOCHECKOUT", "alertModal": "lifecycleState/UNDOCHECKOUT"}
41 },
42 "CERTIFIED":{ "checkOut": {"text":"Check Out", "url":"lifecycleState/CHECKOUT"}
43 },
44 "NOT_CERTIFIED_CHECKIN":{ "submitForTesting": {"text":"Submit for Testing", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"},
45 "checkOut": {"text":"Check Out", "url":"lifecycleState/CHECKOUT"}
46 }
47 },
48 "states":{
49 "NOT_CERTIFIED_CHECKOUT":{
50 "ANY":[
51 {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
52 ]
53 },
54 "NOT_CERTIFIED_CHECKIN": {
55 "ANY": [
56 {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
57 ]
58 },
59 "READY_FOR_CERTIFICATION": {
60 "ANY":[
61 ]
62 },
63 "CERTIFICATION_IN_PROGRESS":{
64 "ANY":[
65 ]
66 },
67 "CERTIFIED":{
68 "ANY":[
69 ]
70 }
71 },
72 "folder":[
73 {"text": "Active Projects", "groupname": "IN_PROGRESS" },
74 {"text": "Check Out", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"},
75 {"text": "Check In", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"},
76 {"text": "Followed Projects", "groupname": "FOLLOWING" },
77 {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"},
78 {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"},
79 {"text": "Certified", "group": "FOLLOWING", "state": "CERTIFIED"}
80 ]
81
82 },
Michael Landoed64b5e2017-06-09 03:19:04 +030083 "TESTER":{
84 "title": "Tester's Workspace",
85 "pages":[],
86 "dashboard": {
Michael Lando75aacbb2017-07-17 21:12:03 +030087 "showCreateNew": false
Michael Landoed64b5e2017-06-09 03:19:04 +030088 },
89 "changeLifecycleStateButtons":{
90 "READY_FOR_CERTIFICATION":{ "startTesting": {"text":"Start Testing", "url":"lifecycleState/startCertification"}
91
92 },
93 "CERTIFICATION_IN_PROGRESS":{ "accept": {"text":"Accept", "url":"lifecycleState/certify", "confirmationModal": "lifecycleState/certify"},
94 "reject": {"text":"Reject", "url":"lifecycleState/failCertification", "confirmationModal": "lifecycleState/failCertification"},
95 "cancel": {"text":"Cancel","action":"changeLifecycleState", "url":"lifecycleState/cancelCertification", "confirmationModal": "lifecycleState/cancel"}
96 }
97 },
98 "states": {
99 "READY_FOR_CERTIFICATION":{
100 "ANY":[
101 {"text":"Start Testing","action":"changeLifecycleState", "url":"lifecycleState/startCertification"}
102 ]
103 },
104 "CERTIFICATION_IN_PROGRESS":{
105 "ANY":[
106 {"text":"Accept","action":"changeLifecycleState", "url":"lifecycleState/certify", "confirmationModal": "lifecycleState/certify"},
107 {"text":"Reject","action":"changeLifecycleState", "url":"lifecycleState/failCertification", "confirmationModal": "lifecycleState/failCertification"},
108 {"text":"Cancel","action":"changeLifecycleState", "url":"lifecycleState/cancelCertification", "confirmationModal": "lifecycleState/cancel" }
109 ]
110 }
111 },
112 "folder":[
113 {"text": "Active Projects", "groupname": "FOLLOWING" },
114 {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"},
115 {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"}
116 ]
117 },
118 "OPS":{
119 "title": "Operations Workspace",
120 "pages":[],
121 "dashboard": {
Michael Lando75aacbb2017-07-17 21:12:03 +0300122 "showCreateNew": false
Michael Landoed64b5e2017-06-09 03:19:04 +0300123 },
124 "changeLifecycleStateButtons":{
125 "DISTRIBUTION_APPROVED":{ "distribute": {"text":"Distribute", "url":"distribution/PROD/activate", "conformanceLevelModal": { "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject" }},
126 "monitor": {"text":"Monitor", "disabled":true}
127 },
128 "DISTRIBUTED":{ "redistribute": {"text":"Redistribute", "url":"distribution/PROD/activate", "conformanceLevelModal": { "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject" }},
129 "monitor": {"text":"Monitor", "url":"distribution-state/monitor"}
130 }
131 },
132 "states": {
133 "CERTIFIED": {
134 "DISTRIBUTION_APPROVED": [
135 {"text": "Distribute","action":"changeLifecycleState", "url":"distribution/PROD/activate"}
136 ],
137 "DISTRIBUTED": [
138 {"text": "Monitor","action":"openDistributionModal", "url":"distribution-state/monitor"},
139 {"text": "Redistribute","action":"changeLifecycleState", "url":"distribution/PROD/activate"}
140 ]
141 }
142 },
143 "folder":[
144 {"text": "Active Projects", "groupname": "FOLLOWING" },
145 {"text": "Waiting For Distribution", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_APPROVED"},
146 {"text": "Distributed", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTED"}
147 ]
148 },
149 "GOVERNOR":{
150 "title": "Governance Rep's Workspace",
151 "pages":[],
152 "dashboard": {
Michael Lando75aacbb2017-07-17 21:12:03 +0300153 "showCreateNew": false
Michael Landoed64b5e2017-06-09 03:19:04 +0300154 },
155 "changeLifecycleStateButtons":{
156 "DISTRIBUTION_NOT_APPROVED":{ "approve": {"text":"Approve", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve", "conformanceLevelModal": { "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject" }},
157 "reject": {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
158 },
159 "DISTRIBUTION_APPROVED":{ "reject": {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
160 },
161 "DISTRIBUTED": { "reject": {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
162 },
163 "DISTRIBUTION_REJECTED": { "approve": {"text": "Approve", "url": "distribution-state/approve", "confirmationModal": "distribution-state/approve", "conformanceLevelModal": { "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject" }}
164 }
165 },
166 "states": {
167 "CERTIFIED": {
168 "DISTRIBUTION_NOT_APPROVED": [
169 {"text":"Approve","action":"changeLifecycleState", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve"},
170 {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
171 ],
172 "DISTRIBUTION_APPROVED": [
173 {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
174 ],
175 "DISTRIBUTED": [
176 {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
177 ],
178 "DISTRIBUTION_REJECTED": [
179 {"text":"Approve","action":"changeLifecycleState", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve"}
180 ]
181 }
182 },
183 "folder":[
184 {"text": "Active Projects", "groupname": "FOLLOWING" },
185 {"text": "Waiting For Approval", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_NOT_APPROVED"},
186 {"text": "Distribution Rejected", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_REJECTED"},
187 {"text": "Distribution Approved", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_APPROVED,DISTRIBUTED"}
188
189 ]
190 }
191 },
192 "confirmationMessages": {
193 "lifecycleState/CHECKIN": {"showComment":true, "title": "Check in confirmation", "message": "Please add comment and confirm the check in."},
194 "lifecycleState/CHECKOUT": {"showComment":true, "title": "Check out confirmation", "message": "Please add comment and confirm the check out."},
195 "lifecycleState/certify": {"showComment":true, "title": "Certification confirmation", "message": "Please add comment and confirm test results."},
196 "lifecycleState/cancel": {"showComment":true, "title": "Cancel test", "message": "Please add comment and cancel test."},
197 "lifecycleState/failCertification": {"showComment":true, "title": "Rejection confirmation", "message": "Please add comment and confirm test results."},
198 "lifecycleState/CERTIFICATIONREQUEST": {"showComment":true, "title": "Submit for testing", "message": "Please add comment and submit for testing."},
199 "distribution-state/approve": {"showComment":true, "title": "Distribution confirmation", "message": "Please add comment and confirm %1 approval for distribution."},
200 "distribution-state/reject": {"showComment":true, "title": "Rejection confirmation", "message": "Please add comment and confirm %1 rejection for distribution."},
201 "updateTemplate": {"showComment":false, "title": "Update Template Confirmation", "message": "Modifying the Template might cause losing of previous information"}
202 },
203 "alertMessages": {
204 "lifecycleState/UNDOCHECKOUT": {"title": "Delete Version Confirmation", "message": "Are you sure you want to delete this version?"},
205 "exitWithoutSaving": {"title": "Exit Without Saving Confirmation", "message": "All unsaved changes will be lost. Are you sure you want to exit this page?"},
Michael Landoa5445102018-03-04 14:53:33 +0200206 "upgradeInstance": {"title": "Switch Versions", "message": "Switching versions will erase service paths: %1. Are you sure you want to proceed?"},
207 "deleteInstance": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1?"},
208 "deleteInput": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1?"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300209 },
210 "statuses": {
211 "inDesign": {
212 "name": "In Design",
213 "values": [
214 "NOT_CERTIFIED_CHECKOUT",
215 "NOT_CERTIFIED_CHECKIN"
216 ]
217 },
218 "readyForCertification": {
219 "name": "Ready For Testing",
220 "values": ["READY_FOR_CERTIFICATION"]
221 },
222 "inCertification": {
223 "name": "In Testing",
224 "values": ["CERTIFICATION_IN_PROGRESS"]
225 },
226 "certified": {
227 "name": "Certified",
228 "values": ["CERTIFIED"]
229 },
230 "distributed": {
231 "name": "Distributed",
232 "values": ["DISTRIBUTED"]
233 }
234 },
235 "categoriesDictionary": {
236 "Mobility": "Application Layer 4+",
237 "Network L1-3": "Network Layer 2-3",
238 "Network L4": "Network Layer 4+",
239 "VoIP Call Control": "Application Layer 4+"
240 },
241 "catalogMenuItem":{
242 "DESIGNER":{
243 "states":{
244 "NOT_CERTIFIED_CHECKOUT":{
245 "ANY":[
246 {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
247 ],
248 "NOT_OWNER":[
249 ]
250 },
251 "NOT_CERTIFIED_CHECKIN": {
252 "ANY": [
253 {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
254 ]
255 },
256 "READY_FOR_CERTIFICATION": {
257 "ANY":[
258 ]
259 },
260 "CERTIFICATION_IN_PROGRESS":{
261 "ANY":[
262 ]
263 },
264 "CERTIFIED":{
265 "ANY":[
266 ]
267 }
268
269 }
270 },
Michael Landoed64b5e2017-06-09 03:19:04 +0300271 "OTHER":{
272 "states":{
273 "ANY":{
274 "ANY":[
275 ]
276 }
277 }
278 }
279 },
280 "LifeCycleStatuses":{
281 "NOT_CERTIFIED_CHECKOUT": { "text":"In Design Check Out", "icon": "checkout-editable-status-icon"},
282 "NOT_CERTIFIED_CHECKIN" : { "text":"In Design Check In", "icon": "checkin-status-icon "},
283 "READY_FOR_CERTIFICATION": { "text":"Ready for testing"},
284 "CERTIFICATION_IN_PROGRESS": { "text":"In Testing"},
285 "CERTIFIED": { "text":"Certified", "icon": "checkin-status-icon "}
286 },
287 "DistributionStatuses":{
288 "DISTRIBUTION_NOT_APPROVED": { "text":"Waiting For Distribution"},
289 "DISTRIBUTION_APPROVED" : { "text":"Distribution Approved"},
290 "DISTRIBUTION_REJECTED": { "text":"Distribution Rejected"},
291 "DISTRIBUTED": { "text":"Distributed"}
292 },
293 "canvas_buttons":{
294 "checkIn": {"text":"Check in","action":"changeLifecycleState", "url":"lifecycleState/CHECKIN", "confirmationModal": "lifecycleState/CHECKIN"},
295 "submitForTesting": {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"},
296 "deleteVersion": {"text":"Delete Version", "action":"changeLifecycleState", "url":"lifecycleState/UNDOCHECKOUT", "alertModal": "lifecycleState/UNDOCHECKOUT"}
297 },
298
299 "component_workspace_menu_option": {
300 "VFC":[
301 {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
Michael Landoed64b5e2017-06-09 03:19:04 +0300302 {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
303 {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
304 {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
305 {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"},
306 {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"},
307 {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"},
308 {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"}
309 ],
310 "VL":[
311 {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
Michael Landoed64b5e2017-06-09 03:19:04 +0300312 {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
313 {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
314 {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
315 {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"},
316 {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"},
317 {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"},
318 {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"}
319 ],
320 "CP":[
321 {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
Michael Landoed64b5e2017-06-09 03:19:04 +0300322 {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
323 {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
324 {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
325 {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"},
326 {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"},
327 {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"},
328 {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"}
329 ],
330 "VF":[
331 {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
Michael Landoed64b5e2017-06-09 03:19:04 +0300332 {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
333 {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
334 {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
335 // {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"},
336 {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"},
337 {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"},
338 {"text":"Deployment", "action":"onMenuItemPressed", "state": "workspace.deployment"},
339 // {"text":"Inputs", "action":"onMenuItemPressed", "state": "workspace.resource_inputs"},
340 {"text":"Properties Assignment", "action":"onMenuItemPressed", "state": "workspace.properties_assignment"}
341 ],
Michael Lando75aacbb2017-07-17 21:12:03 +0300342 "PNF":[
343 {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
344 {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
345 {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
346 {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"},
347 {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"},
348 {"text":"Properties Assignment", "action":"onMenuItemPressed", "state": "workspace.properties_assignment"}
349 ],
Michael Landoa5445102018-03-04 14:53:33 +0200350 "CR":[
351 {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
352 {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
353 {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
354 {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
355 {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"},
356 {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"},
357 {"text":"Properties Assignment", "action":"onMenuItemPressed", "state": "workspace.properties_assignment"}
358 ],
Michael Landoed64b5e2017-06-09 03:19:04 +0300359 "SERVICE":[
360 {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
Michael Landoed64b5e2017-06-09 03:19:04 +0300361 {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
362 {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"},
363 {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"},
364 {"text":"Management Workflow", "action":"onMenuItemPressed", "state": "workspace.management_workflow"},
365 {"text":"Network Call Flow ", "action":"onMenuItemPressed", "state": "workspace.network_call_flow"},
Michael Lando75aacbb2017-07-17 21:12:03 +0300366 {"text":"Monitor ", "action":"onMenuItemPressed", "state": "workspace.distribution", "disabledRoles": ["ADMIN", "TESTER", "GOVERNOR", "DESIGNER"]},
Michael Landoed64b5e2017-06-09 03:19:04 +0300367 {"text":"Deployment", "action":"onMenuItemPressed", "state": "workspace.deployment"},
368 // {"text":"Inputs", "action":"onMenuItemPressed", "state": "workspace.service_inputs"},
369 {"text":"Properties Assignment", "action":"onMenuItemPressed", "state": "workspace.properties_assignment"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300370 ]
371 }
372
373}
374
375module.exports = SDC_MENU_CONFIG;