blob: beecfd16b21d4c7aff70581ddb214f0c1685b636 [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001const SDC_MENU_CONFIG = {
Michael Lando5b593492018-07-29 16:13:45 +03002 "roles": {
3 "ADMIN": {
Michael Landoed64b5e2017-06-09 03:19:04 +03004 "title": "Admin's Workspace",
Michael Landoed64b5e2017-06-09 03:19:04 +03005 },
Michael Lando5b593492018-07-29 16:13:45 +03006 "DESIGNER": {
Michael Landoed64b5e2017-06-09 03:19:04 +03007 "title": "Designer's Workspace",
Michael Landoed64b5e2017-06-09 03:19:04 +03008 "dashboard": {
Michael Lando75aacbb2017-07-17 21:12:03 +03009 "showCreateNew": true
Michael Landoed64b5e2017-06-09 03:19:04 +030010 },
Michael Lando5b593492018-07-29 16:13:45 +030011 "changeLifecycleStateButtons": {
12 "NOT_CERTIFIED_CHECKOUT": {
13 "RESOURCE": {
14 "certify": {
15 "text": "Certify",
16 "url": "lifecycleState/certify",
17 "confirmationModal": "lifecycleState/certify"
18 },
19 "checkIn": {
20 "text": "Check in",
21 "url": "lifecycleState/CHECKIN",
22 "confirmationModal": "lifecycleState/CHECKIN"
23 },
24 "deleteVersion": {
25 "text": "Delete Version",
26 "url": "lifecycleState/UNDOCHECKOUT",
27 "alertModal": "lifecycleState/UNDOCHECKOUT"
28 }
29 },
30 "SERVICE": {
ys969316a9fce2020-01-19 13:50:02 +020031 "certify": {
32 "text": "Certify",
33 "url": "lifecycleState/certify",
34 "confirmationModal": "lifecycleState/certify"
Michael Lando5b593492018-07-29 16:13:45 +030035 },
36 "checkIn": {
37 "text": "Check in",
38 "url": "lifecycleState/CHECKIN",
39 "confirmationModal": "lifecycleState/CHECKIN"
40 },
41 "deleteVersion": {
42 "text": "Delete Version",
43 "url": "lifecycleState/UNDOCHECKOUT",
44 "alertModal": "lifecycleState/UNDOCHECKOUT"
45 }
46 }
47
Michael Landoed64b5e2017-06-09 03:19:04 +030048 },
Michael Lando5b593492018-07-29 16:13:45 +030049 "CERTIFIED": {
50 "RESOURCE": {
51 "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
52 },
53 "SERVICE": {
54 "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
55 }
Michael Landoed64b5e2017-06-09 03:19:04 +030056 },
57 "NOT_CERTIFIED_CHECKIN": {
Michael Lando5b593492018-07-29 16:13:45 +030058 "RESOURCE": {
59 "certify": {
60 "text": "Certify",
61 "url": "lifecycleState/certify",
62 "confirmationModal": "lifecycleState/certify"
63 },
64 "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
65 },
66 "SERVICE": {
ys969316a9fce2020-01-19 13:50:02 +020067 "certify": {
68 "text": "Certify",
Michael Lando5b593492018-07-29 16:13:45 +030069 "url": "lifecycleState/certify",
70 "confirmationModal": "lifecycleState/certify"
71 },
ys969316a9fce2020-01-19 13:50:02 +020072 "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
Michael Lando5b593492018-07-29 16:13:45 +030073 }
ys969316a9fce2020-01-19 13:50:02 +020074 },
75 "DISTRIBUTION_NOT_APPROVED": {
Michael Lando5b593492018-07-29 16:13:45 +030076 "RESOURCE":{},
77 "SERVICE": {
78 "distribute": {
79 "text": "Distribute",
80 "url": "distribution/PROD/activate",
81 "conformanceLevelModal": {
82 "url": "distribution-state/reject",
83 "confirmationModal": "distribution-state/reject"
84 }
85 },
ys969316a9fce2020-01-19 13:50:02 +020086 "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
Michael Lando5b593492018-07-29 16:13:45 +030087 }
Michael Landoed64b5e2017-06-09 03:19:04 +030088 },
Michael Lando5b593492018-07-29 16:13:45 +030089 "DISTRIBUTED": {
90 "RESOURCE":{},
91 "SERVICE": {
92 "redistribute": {
93 "text": "Redistribute",
94 "url": "distribution/PROD/activate",
95 "conformanceLevelModal": {
96 "url": "distribution-state/reject",
97 "confirmationModal": "distribution-state/reject"
98 }
99 },
ys969316a9fce2020-01-19 13:50:02 +0200100 "checkOut": {"text": "Check Out", "url": "lifecycleState/CHECKOUT"}
Michael Lando5b593492018-07-29 16:13:45 +0300101 }
Michael Landoed64b5e2017-06-09 03:19:04 +0300102 }
103 },
Michael Lando5b593492018-07-29 16:13:45 +0300104 "folder": [
ys969316a9fce2020-01-19 13:50:02 +0200105 {"text": "Active Projects", "groupname": "IN_PROGRESS"},
106 {"text": "Check Out", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"},
107 {"text": "Check In", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"},
108 {"text": "Followed Projects", "groupname": "FOLLOWING"},
109 {"text": "Certified", "group": "FOLLOWING", "state": "CERTIFIED"},
110 {"text": "Distributed", "group": "FOLLOWING", "state": "DISTRIBUTED"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300111 ]
Michael Landoed64b5e2017-06-09 03:19:04 +0300112
Michael Landoed64b5e2017-06-09 03:19:04 +0300113 }
114 },
115 "confirmationMessages": {
Michael Lando5b593492018-07-29 16:13:45 +0300116 "lifecycleState/CHECKIN": {
117 "showComment": true,
118 "title": "Check in confirmation",
119 "message": "Please add comment and confirm the check in."
120 },
121 "lifecycleState/CHECKOUT": {
122 "showComment": true,
123 "title": "Check out confirmation",
124 "message": "Please add comment and confirm the check out."
125 },
126 "lifecycleState/certify": {
127 "showComment": true,
128 "title": "Certification confirmation",
129 "message": "Please add comment and confirm test results."
130 },
Michael Lando5b593492018-07-29 16:13:45 +0300131 "updateTemplate": {
132 "showComment": false,
133 "title": "Update Template Confirmation",
134 "message": "Modifying the Template might cause losing of previous information"
135 }
Michael Landoed64b5e2017-06-09 03:19:04 +0300136 },
137 "alertMessages": {
Michael Lando5b593492018-07-29 16:13:45 +0300138 "lifecycleState/UNDOCHECKOUT": {
139 "title": "Delete Version Confirmation",
140 "message": "Are you sure you want to delete this version?"
141 },
142 "exitWithoutSaving": {
143 "title": "Exit Without Saving Confirmation",
144 "message": "All unsaved changes will be lost. Are you sure you want to exit this page?"
145 },
146 "upgradeInstance": {
147 "title": "Switch Versions",
148 "message": "Switching versions will erase service paths: %1. Are you sure you want to proceed?"
149 },
Michael Landoa5445102018-03-04 14:53:33 +0200150 "deleteInstance": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1?"},
ys969316a9fce2020-01-19 13:50:02 +0200151 "deleteInput": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1?"},
152 "okButton": "OK"
Michael Landoed64b5e2017-06-09 03:19:04 +0300153 },
154 "statuses": {
155 "inDesign": {
156 "name": "In Design",
157 "values": [
158 "NOT_CERTIFIED_CHECKOUT",
159 "NOT_CERTIFIED_CHECKIN"
160 ]
161 },
Michael Landoed64b5e2017-06-09 03:19:04 +0300162 "certified": {
163 "name": "Certified",
164 "values": ["CERTIFIED"]
165 },
166 "distributed": {
167 "name": "Distributed",
168 "values": ["DISTRIBUTED"]
169 }
170 },
171 "categoriesDictionary": {
172 "Mobility": "Application Layer 4+",
173 "Network L1-3": "Network Layer 2-3",
174 "Network L4": "Network Layer 4+",
175 "VoIP Call Control": "Application Layer 4+"
176 },
Michael Lando5b593492018-07-29 16:13:45 +0300177 "catalogMenuItem": {
178 "DESIGNER": {
179 "states": {
180 "NOT_CERTIFIED_CHECKOUT": {
Michael Lando5b593492018-07-29 16:13:45 +0300181 "ANY": []
Michael Landoed64b5e2017-06-09 03:19:04 +0300182 },
ys969316a9fce2020-01-19 13:50:02 +0200183 "NOT_CERTIFIED_CHECKIN": {
Michael Lando5b593492018-07-29 16:13:45 +0300184 "ANY": []
Michael Landoed64b5e2017-06-09 03:19:04 +0300185 },
Michael Lando5b593492018-07-29 16:13:45 +0300186 "CERTIFIED": {
187 "ANY": []
Michael Landoed64b5e2017-06-09 03:19:04 +0300188 }
Michael Landoed64b5e2017-06-09 03:19:04 +0300189 }
190 },
Michael Lando5b593492018-07-29 16:13:45 +0300191 "OTHER": {
192 "states": {
193 "ANY": {
194 "ANY": []
Michael Landoed64b5e2017-06-09 03:19:04 +0300195 }
196 }
197 }
198 },
Michael Lando5b593492018-07-29 16:13:45 +0300199 "LifeCycleStatuses": {
200 "NOT_CERTIFIED_CHECKOUT": {"text": "In Design Check Out", "icon": "checkout-editable-status-icon"},
201 "NOT_CERTIFIED_CHECKIN": {"text": "In Design Check In", "icon": "checkin-status-icon "},
Michael Lando5b593492018-07-29 16:13:45 +0300202 "CERTIFIED": {"text": "Certified", "icon": "checkin-status-icon "}
Michael Landoed64b5e2017-06-09 03:19:04 +0300203 },
Michael Lando5b593492018-07-29 16:13:45 +0300204 "DistributionStatuses": {
205 "DISTRIBUTION_NOT_APPROVED": {"text": "Waiting For Distribution"},
Michael Lando5b593492018-07-29 16:13:45 +0300206 "DISTRIBUTED": {"text": "Distributed"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300207 },
Michael Lando5b593492018-07-29 16:13:45 +0300208 "canvas_buttons": {
209 "checkIn": {
210 "text": "Check in",
211 "action": "changeLifecycleState",
212 "url": "lifecycleState/CHECKIN",
213 "confirmationModal": "lifecycleState/CHECKIN"
214 },
Michael Lando5b593492018-07-29 16:13:45 +0300215 "deleteVersion": {
216 "text": "Delete Version",
217 "action": "changeLifecycleState",
218 "url": "lifecycleState/UNDOCHECKOUT",
219 "alertModal": "lifecycleState/UNDOCHECKOUT"
220 }
Michael Landoed64b5e2017-06-09 03:19:04 +0300221 },
222
223 "component_workspace_menu_option": {
Michael Lando5b593492018-07-29 16:13:45 +0300224 "VFC": [
225 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
226 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
227 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
228 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
229 {"text": "Properties", "action": "onMenuItemPressed", "state": "workspace.properties"},
230 {"text": "Attributes", "action": "onMenuItemPressed", "state": "workspace.attributes"},
231 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
232 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300233 ],
Michael Lando5b593492018-07-29 16:13:45 +0300234 "VL": [
235 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
236 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
237 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
238 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
239 {"text": "Properties", "action": "onMenuItemPressed", "state": "workspace.properties"},
240 {"text": "Attributes", "action": "onMenuItemPressed", "state": "workspace.attributes"},
241 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
242 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300243 ],
Michael Lando5b593492018-07-29 16:13:45 +0300244 "CP": [
245 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
246 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
247 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
248 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
249 {"text": "Properties", "action": "onMenuItemPressed", "state": "workspace.properties"},
250 {"text": "Attributes", "action": "onMenuItemPressed", "state": "workspace.attributes"},
251 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
252 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300253 ],
Michael Lando5b593492018-07-29 16:13:45 +0300254 "VF": [
255 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
256 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
257 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
ys969316a9fce2020-01-19 13:50:02 +0200258 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
Michael Lando5b593492018-07-29 16:13:45 +0300259 {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details"},
Arielk4a99e322018-11-28 12:24:34 +0200260 {"text": "Operation", "action":"onMenuItemPressed", "state": "workspace.interface_operation"},
Michael Lando5b593492018-07-29 16:13:45 +0300261 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
miriame41ee9cb2019-03-04 13:49:15 +0200262 {"text": "Deployment", "action": "onMenuItemPressed", "state": "workspace.deployment"},
ys969316a9fce2020-01-19 13:50:02 +0200263 {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"},
vasraz26e50292021-02-16 17:37:57 +0000264 {"text": "Attributes & Outputs", "action": "onMenuItemPressed", "state": "workspace.attributes_outputs"},
miriame41ee9cb2019-03-04 13:49:15 +0200265 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300266 ],
Michael Lando5b593492018-07-29 16:13:45 +0300267 "PNF": [
268 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
dermot123d83268a2019-03-13 12:37:35 +0000269 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
Michael Lando5b593492018-07-29 16:13:45 +0300270 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
271 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
272 {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details"},
Arielk4a99e322018-11-28 12:24:34 +0200273 {"text": "Operation", "action": "onMenuItemPressed", "state": "workspace.interface_operation"},
Michael Lando5b593492018-07-29 16:13:45 +0300274 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
ys969316a9fce2020-01-19 13:50:02 +0200275 {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"},
miriame41ee9cb2019-03-04 13:49:15 +0200276 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
Michael Lando75aacbb2017-07-17 21:12:03 +0300277 ],
Michael Lando5b593492018-07-29 16:13:45 +0300278 "CR": [
279 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
280 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
281 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
282 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
ys969316a9fce2020-01-19 13:50:02 +0200283 {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details", "disabledCategories":["Partner Domain Service"]},
284 {"text": "Operation", "action":"onMenuItemPressed", "state": "workspace.interface_operation"},
Michael Lando5b593492018-07-29 16:13:45 +0300285 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
ys969316a9fce2020-01-19 13:50:02 +0200286 {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"},
287 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
Michael Landoa5445102018-03-04 14:53:33 +0200288 ],
Michael Lando5b593492018-07-29 16:13:45 +0300289 "SERVICE": [
Nilay Ranjane38ef742019-12-09 22:58:39 +0530290 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general", "hiddenCategories":["Partner Domain Service"]},
Michael Lando5b593492018-07-29 16:13:45 +0300291 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
atif husaind2891082019-10-02 18:03:57 +1000292 {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details", "disabledCategories":["Partner Domain Service"]},
Arielkf1e032c2018-09-06 15:30:15 +0300293 {"text": "Operation", "action":"onMenuItemPressed", "state": "workspace.interface_operation"},
Michael Lando5b593492018-07-29 16:13:45 +0300294 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
295 {"text": "Management Workflow", "action": "onMenuItemPressed", "state": "workspace.management_workflow"},
296 {"text": "Network Call Flow ", "action": "onMenuItemPressed", "state": "workspace.network_call_flow"},
ys969316a9fce2020-01-19 13:50:02 +0200297 {"text": "Distribution","action": "onMenuItemPressed","state": "workspace.distribution","disabledRoles": ["ADMIN"]},
miriame41ee9cb2019-03-04 13:49:15 +0200298 {"text": "Deployment", "action": "onMenuItemPressed", "state": "workspace.deployment"},
vasraz26e50292021-02-16 17:37:57 +0000299 {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"},
300 {"text": "Attributes & Outputs", "action": "onMenuItemPressed", "state": "workspace.attributes_outputs"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300301 ]
302 }
303
vasraz26e50292021-02-16 17:37:57 +0000304};
Michael Landoed64b5e2017-06-09 03:19:04 +0300305
306module.exports = SDC_MENU_CONFIG;