blob: 54c1b63d7d2f36c8c9b4df5e58cbc8312c99df9e [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"},
aribeiroc2fa1b72022-01-13 14:33:25 +0000231 {"text": "Interfaces", "action": "onMenuItemPressed", "state": "workspace.interface-definition"},
Michael Lando5b593492018-07-29 16:13:45 +0300232 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
233 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300234 ],
Michael Lando5b593492018-07-29 16:13:45 +0300235 "VL": [
236 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
237 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
238 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
239 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
240 {"text": "Properties", "action": "onMenuItemPressed", "state": "workspace.properties"},
241 {"text": "Attributes", "action": "onMenuItemPressed", "state": "workspace.attributes"},
242 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
243 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300244 ],
Michael Lando5b593492018-07-29 16:13:45 +0300245 "CP": [
246 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
247 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
248 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
249 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
250 {"text": "Properties", "action": "onMenuItemPressed", "state": "workspace.properties"},
251 {"text": "Attributes", "action": "onMenuItemPressed", "state": "workspace.attributes"},
252 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCap"},
253 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300254 ],
Michael Lando5b593492018-07-29 16:13:45 +0300255 "VF": [
256 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
257 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
258 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
ys969316a9fce2020-01-19 13:50:02 +0200259 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
Michael Lando5b593492018-07-29 16:13:45 +0300260 {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details"},
Arielk4a99e322018-11-28 12:24:34 +0200261 {"text": "Operation", "action":"onMenuItemPressed", "state": "workspace.interface_operation"},
Michael Lando5b593492018-07-29 16:13:45 +0300262 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
miriame41ee9cb2019-03-04 13:49:15 +0200263 {"text": "Deployment", "action": "onMenuItemPressed", "state": "workspace.deployment"},
ys969316a9fce2020-01-19 13:50:02 +0200264 {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"},
vasraz26e50292021-02-16 17:37:57 +0000265 {"text": "Attributes & Outputs", "action": "onMenuItemPressed", "state": "workspace.attributes_outputs"},
miriame41ee9cb2019-03-04 13:49:15 +0200266 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300267 ],
Michael Lando5b593492018-07-29 16:13:45 +0300268 "PNF": [
269 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
dermot123d83268a2019-03-13 12:37:35 +0000270 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
Michael Lando5b593492018-07-29 16:13:45 +0300271 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
272 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
273 {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details"},
Arielk4a99e322018-11-28 12:24:34 +0200274 {"text": "Operation", "action": "onMenuItemPressed", "state": "workspace.interface_operation"},
Michael Lando5b593492018-07-29 16:13:45 +0300275 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
ys969316a9fce2020-01-19 13:50:02 +0200276 {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"},
miriame41ee9cb2019-03-04 13:49:15 +0200277 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
Michael Lando75aacbb2017-07-17 21:12:03 +0300278 ],
Michael Lando5b593492018-07-29 16:13:45 +0300279 "CR": [
280 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general"},
281 {"text": "Deployment Artifact", "action": "onMenuItemPressed", "state": "workspace.deployment_artifacts"},
282 {"text": "Information Artifact", "action": "onMenuItemPressed", "state": "workspace.information_artifacts"},
283 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
ys969316a9fce2020-01-19 13:50:02 +0200284 {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details", "disabledCategories":["Partner Domain Service"]},
285 {"text": "Operation", "action":"onMenuItemPressed", "state": "workspace.interface_operation"},
Michael Lando5b593492018-07-29 16:13:45 +0300286 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
ys969316a9fce2020-01-19 13:50:02 +0200287 {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"},
288 {"text": "Req. & Capabilities", "action": "onMenuItemPressed", "state": "workspace.reqAndCapEditable"}
Michael Landoa5445102018-03-04 14:53:33 +0200289 ],
Michael Lando5b593492018-07-29 16:13:45 +0300290 "SERVICE": [
Nilay Ranjane38ef742019-12-09 22:58:39 +0530291 {"text": "General", "action": "onMenuItemPressed", "state": "workspace.general", "hiddenCategories":["Partner Domain Service"]},
Michael Lando5b593492018-07-29 16:13:45 +0300292 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "workspace.tosca_artifacts"},
atif husaind2891082019-10-02 18:03:57 +1000293 {"text": "Composition", "action": "onMenuItemPressed", "state": "workspace.composition.details", "disabledCategories":["Partner Domain Service"]},
Arielkf1e032c2018-09-06 15:30:15 +0300294 {"text": "Operation", "action":"onMenuItemPressed", "state": "workspace.interface_operation"},
Michael Lando5b593492018-07-29 16:13:45 +0300295 {"text": "Activity Log", "action": "onMenuItemPressed", "state": "workspace.activity_log"},
296 {"text": "Management Workflow", "action": "onMenuItemPressed", "state": "workspace.management_workflow"},
297 {"text": "Network Call Flow ", "action": "onMenuItemPressed", "state": "workspace.network_call_flow"},
ys969316a9fce2020-01-19 13:50:02 +0200298 {"text": "Distribution","action": "onMenuItemPressed","state": "workspace.distribution","disabledRoles": ["ADMIN"]},
miriame41ee9cb2019-03-04 13:49:15 +0200299 {"text": "Deployment", "action": "onMenuItemPressed", "state": "workspace.deployment"},
imamSidero0c47a1b2023-08-24 11:48:06 +0100300 {"text": "Interfaces Assignment", "action": "onMenuItemPressed", "state": "workspace.interface-definition"},
vasraz26e50292021-02-16 17:37:57 +0000301 {"text": "Properties Assignment", "action": "onMenuItemPressed", "state": "workspace.properties_assignment"},
302 {"text": "Attributes & Outputs", "action": "onMenuItemPressed", "state": "workspace.attributes_outputs"}
andre.schmid6ed55922022-09-23 12:31:12 +0100303 ],
304 "DataType": [
305 {"text": "General", "action": "onMenuItemPressed", "state": "general"},
andre.schmidaa727812022-10-04 20:29:28 +0100306 {"text": "Properties", "action": "onMenuItemPressed", "state": "properties"},
KrupaNagabhushan39435342022-10-26 17:26:54 +0100307 {"text": "TOSCA Artifacts", "action": "onMenuItemPressed", "state": "tosca_artifacts"}
Michael Landoed64b5e2017-06-09 03:19:04 +0300308 ]
309 }
310
vasraz26e50292021-02-16 17:37:57 +0000311};
Michael Landoed64b5e2017-06-09 03:19:04 +0300312
313module.exports = SDC_MENU_CONFIG;