diff options
author | Michael Lando <ml636r@att.com> | 2017-02-19 10:28:42 +0200 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2017-02-19 10:51:01 +0200 |
commit | 451a3400b76511393c62a444f588a4ed15f4a549 (patch) | |
tree | e4f5873a863d1d3e55618eab48b83262f874719d /catalog-ui/configurations | |
parent | 5abfe4e1fb5fae4bbd5fbc340519f52075aff3ff (diff) |
Initial OpenECOMP SDC commit
Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b
Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'catalog-ui/configurations')
-rw-r--r-- | catalog-ui/configurations/MenuReadMe.txt | 60 | ||||
-rw-r--r-- | catalog-ui/configurations/dev.json | 430 | ||||
-rw-r--r-- | catalog-ui/configurations/menu.json | 576 | ||||
-rw-r--r-- | catalog-ui/configurations/mock.json | 192 | ||||
-rw-r--r-- | catalog-ui/configurations/prod.json | 432 |
5 files changed, 1690 insertions, 0 deletions
diff --git a/catalog-ui/configurations/MenuReadMe.txt b/catalog-ui/configurations/MenuReadMe.txt new file mode 100644 index 0000000000..660427e5c9 --- /dev/null +++ b/catalog-ui/configurations/MenuReadMe.txt @@ -0,0 +1,60 @@ +******************************************************************* +******* Explanation about menu.json ******* +******************************************************************* + +The menu.json defines the menu to show for each type of "roles": + +Supported roles: +----------------------------- +ADMIN +DESIGNER +PRODUCT_STRATEGIST +PRODUCT_MANAGER +TESTER +OPS +GOVERNOR + +The JSON is separated to roles, and for each role we define "states", +what menu to show the user for each state of the component: + +Supported states: +----------------------------- +NOT_CERTIFIED_CHECKOUT +NOT_CERTIFIED_CHECKIN +READY_FOR_CERTIFICATION +CERTIFICATION_IN_PROGRESS +CERTIFIED + +For each state we can define the user that will see this menu, the available parameters are: + +Supported users: +----------------------------- +ANY +NOT_OWNER + +Example: +For designer, if the component state is checkout and the component was created by other user, the NOT_OWNER will be used. + +"DESIGNER":{ + "states":{ + "NOT_CERTIFIED_CHECKOUT":{ + "ANY":[ + {"text":"Edit" ,"action":"goToEntity"}, + {"text":"Check in","action":"changeLifecycleState", "url":"lifecycleState/CHECKIN", "confirmationModal": "lifecycleState/CHECKIN"}, + {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + {"text":"View" ,"action":"openViewerModal"} + ], + "NOT_OWNER":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + + +Definition of the menu item: +----------------------------- +text - The text to show +action - Function that will be called when pressing on the menu item +url - Data added to menu item, in case the function need to use it, example: for function "changeLifecycleState", I need to pass also the url "lifecycleState/CHECKOUT" that I want the state to change to. +confirmationModal - Open confirmation modal (user should select "OK" or "Cancel"), and continue with the action. +emailModal - Open email modal (user should fill email details), and continue with the action. +blockedForTypes - This item will not be shown for specific components types. diff --git a/catalog-ui/configurations/dev.json b/catalog-ui/configurations/dev.json new file mode 100644 index 0000000000..4cc09d3c31 --- /dev/null +++ b/catalog-ui/configurations/dev.json @@ -0,0 +1,430 @@ +{ + "environment": "dev", + "api": { + "GET_component": "/v1/catalog/:type/:id", + "PUT_component": "/v1/catalog/:type/:id/metadata", + "GET_component_validate_name": "/v1/catalog/:type/validate-name/:name", + "POST_changeLifecycleState": "/v1/catalog/", + "component_api_root": "/v1/catalog/", + "welcome_page_video_url": "http://0.0.0.0:8282/moti/movie", + + "GET_user": "/v1/user/:id", + "GET_user_authorize": "/v1/user/authorize", + "GET_all_users": "/v1/user/users", + "POST_create_user": "/v1/user", + "DELETE_delete_user": "/v1/user/:id", + "POST_edit_user_role": "/v1/user/:id/role", + "GET_resource": "/v1/catalog/resources/:id", + "GET_resources_latestversion_notabstract":"/v1/catalog/:type/latestversion/notabstract/:id", + "GET_resources_certified_not_abstract": "/v1/catalog/resources/certified/notabstract/:id", + "GET_resources_certified_abstract": "/v1/catalog/resources/certified/abstract/:id", + "GET_resource_property": "/v1/catalog/:type/:entityId/properties/:id", + "PUT_resource": "/v1/catalog/resources/:id/metadata", + "GET_resource_artifact": "/v1/catalog/:type/:entityId/artifacts/:id", + "GET_download_instance_artifact": "/v1/catalog/:type/:entityId/resourceInstances/:instanceId/artifacts/:id", + "POST_instance_artifact": "/v1/catalog/:type/:entityId/resourceInstance/:instanceId/artifacts/:id", + "GET_resource_additional_information": "/v1/catalog/:type/:entityId/additionalinfo/:id", + "GET_service_artifact": "/v1/catalog/services/:serviceId/artifacts/:id", + "GET_resource_interface_artifact": "/v1/catalog/:type/:entityId/standard/:operation/artifacts/:id", + "GET_resource_api_artifact": "/v1/catalog/:type/:entityId/artifacts/api/:id", + "GET_configuration_ui": "/v1/configuration/ui", + "GET_resource_validate_name": "/v1/catalog/resources/validate-name/:name", + "GET_activity_log": "/v1/catalog/audit-records/:type/:id", + "GET_service": "/v1/catalog/services/:id", + "GET_service_validate_name": "/v1/catalog/services/validate-name/:name", + "GET_service_distributions":"/v1/catalog/services/:uuid/distribution", + "GET_service_distributions_components":"/v1/catalog/services/distribution/:distributionId", + "POST_service_distribution_deploy" : "/v1/catalog/services/:serviceId/distribution/:distributionId/markDeployed", + "GET_element": "/v1/followed", + "GET_catalog": "/v1/screen", + "GET_ecomp_menu_items": "/v1/user/:userId/functionalmenu", + "GET_resource_category": "/v1/resourceCategories", + "GET_service_category": "/v1/serviceCategories", + "resource_instance": "/v1/catalog/:entityType/:entityId/resourceInstance/:id", + "GET_resource_instance_property": "/v1/catalog/:type/:entityId/resourceInstance/:componentInstanceId/property/:propertyValueId", + "GET_relationship": "/v1/catalog/:entityType/:entityId/resourceInstance/:action", + "GET_lifecycle_state_resource": "/v1/catalog/:type/:id/lifecycleState/:action", + "GET_lifecycle_state_CHECKIN":"lifecycleState/CHECKIN", + "GET_lifecycle_state_CERTIFICATIONREQUEST":"lifecycleState/CERTIFICATIONREQUEST", + "GET_lifecycle_state_UNDOCHECKOUT":"lifecycleState/UNDOCHECKOUT", + "root": "http://feHost:8181/sdc1/feProxy/rest", + "PUT_service": "/v1/catalog/services/:id/metadata", + "GET_download_artifact": "/v1/catalog/", + "GET_SDC_Version": "/version", + "GET_categories": "/v1/categories/:types", + "POST_category": "/v1/category/:types/:categoryId", + "POST_subcategory": "/v1/category/:types/:categoryId/subCategory/:subCategoryId", + "POST_change_instance_version": "/v1/catalog/:entityType/:entityId/resourceInstance/:id/changeVersion", + "GET_requirements_capabilities": "/v1/catalog/requirmentsCapabilities/:type/:id", + "GET_resource_artifact_types": "/v1/artifactTypes", + "GET_product_catalog": "/v1/productScreen", + "GET_product_category": "/v1/productCategories", + "GET_product_category_temp": "/v1/artifactTypes", + "POST_product": "/v1/catalog/products/:id/metadata", + "GET_product_validate_name": "/v1/catalog/services/validate-name/:name", + "GET_product": "/v1/catalog/products/:id", + "GET_product_sub_category": "/v1/productSubCategories", + "GET_onboarding": "http://fehost:8181/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products/packages", + "GET_component_from_csar_uuid": "/v1/catalog/resources/csar/:csar_uuid", + "kibana": "/sdc1/kibanaProxy/" + }, + "resourceTypesFilter":{ + "resource":["CP","VFC"], + "service":["CP","VF"], + "product":[] + }, + "logConfig": { + "minLogLevel": "debug", + "prefix": "sdcApp" + }, + "cookie": { + "junctionName": "IV_JCT", + "prefix": "AMWEBJCT!", + "userIdSuffix": "USER_ID", + "userFirstName": "HTTP_CSP_FIRSTNAME", + "userLastName": "HTTP_CSP_LASTNAME", + "userEmail": "HTTP_CSP_EMAIL", + "xEcompRequestId": " X-ECOMP-RequestID" + }, + "imagesPath": "", + "cpEndPointInstances" : ["cloudep","ossep","personep","premisesep"], + "toscaFileExtension":"yaml,yml", + "csarFileExtension":"csar", + "openSource": true, + "categories": {}, + "testers": { + "RESOURCE": { + "Network L2-3": "DL-ASDCL1-3ResourceCertificationTeam", + "Network L4+": "DL-ASDCL4-7ResourceCertificationTeam", + "Application L4+": "DL-ASDCL4-7ResourceCertificationTeam", + "default": "DL-ASDCL1-3ResourceCertificationTeam;DL-ASDCL4-7ResourceCertificationTeam" + }, + "SERVICE": { + "Network L1-3": "DL-ASDCL1-4ServiceCertificationTeam", + "Network L4+": "DL-ASDCL4-7ServiceCertificationTeam", + "default": "DL-ASDCL1-4ServiceCertificationTeam;DL-ASDCL4-7ServiceCertificationTeam" + } + }, + "roles": ["ADMIN", "TESTER", "GOVERNOR", "OPS", "DESIGNER", "PRODUCT_MANAGER", "PRODUCT_STRATEGIST"], + "tutorial": { + "tabs": [ + { + "id":1, + "name":"TUTRIAL_GENERAL_TAB_1", + "defaultPage":1 + }, + { + "id":2, + "name":"TUTRIAL_GENERAL_TAB_2", + "defaultPage":9 + }, + { + "id":3, + "name":"TUTRIAL_GENERAL_TAB_3", + "defaultPage":12 + } + ], + "pages": + [ + { + "id":1, + "template": "text-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE1_TITLE", + "description":"TUTORIAL_PAGE1_TEXT" + } + + }, + { + "id":2, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE2_TITLE", + "description":"TUTORIAL_PAGE2_TEXT", + "imageClass":"sdc-tutorial-page-2-image" + } + }, + { + "id":3, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE3_TITLE", + "description":"TUTORIAL_PAGE3_TEXT", + "imageClass":"sdc-tutorial-page-3-image" + } + }, + { + "id":4, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE4_TITLE", + "description":"TUTORIAL_PAGE4_TEXT", + "imageClass":"sdc-tutorial-page-4-image" + } + }, + { + "id":5, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE5_TITLE", + "description":"TUTORIAL_PAGE5_TEXT", + "imageClass":"sdc-tutorial-page-5-image" + } + }, + { + "id":6, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE6_TITLE", + "description":"TUTORIAL_PAGE6_TEXT", + "imageClass":"sdc-tutorial-page-6-image" + } + }, + { + "id":7, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE7_TITLE", + "description":"TUTORIAL_PAGE7_TEXT", + "imageClass":"sdc-tutorial-page-7-image" + } + }, + { + "id":8, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE8_TITLE", + "description":"TUTORIAL_PAGE8_TEXT", + "imageClass":"sdc-tutorial-page-8-image" + } + }, + { + "id":9, + "template": "text-template", + "tab": 2, + "data":{ + "title":"TUTORIAL_PAGE9_TITLE", + "description":"TUTORIAL_PAGE9_TEXT" + } + }, + { + "id":10, + "template": "image-template", + "tab": 2, + "data":{ + "title":"TUTORIAL_PAGE10_TITLE", + "description":"TUTORIAL_PAGE10_TEXT", + "imageClass":"sdc-tutorial-page-10-image" + } + }, + { + "id":11, + "template": "image-template", + "tab": 2, + "data":{ + "title":"TUTORIAL_PAGE11_TITLE", + "description":"TUTORIAL_PAGE11_TEXT", + "imageClass":"sdc-tutorial-page-11-image" + } + }, + { + "id":12, + "template": "text-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE12_TITLE", + "description":"TUTORIAL_PAGE12_TEXT" + } + }, + { + "id":13, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE13_TITLE", + "description":"TUTORIAL_PAGE13_TEXT", + "imageClass":"sdc-tutorial-page-13-image" + } + }, + { + "id":14, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE14_TITLE", + "description":"TUTORIAL_PAGE14_TEXT", + "imageClass":"sdc-tutorial-page-14-image" + } + }, + { + "id":15, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE15_TITLE", + "description":"TUTORIAL_PAGE15_TEXT", + "imageClass":"sdc-tutorial-page-15-image" + } + }, + { + "id":16, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE16_TITLE", + "description":"TUTORIAL_PAGE16_TEXT", + "imageClass":"sdc-tutorial-page-16-image" + } + }, + { + "id":17, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE17_TITLE", + "description":"TUTORIAL_PAGE17_TEXT", + "imageClass":"sdc-tutorial-page-17-image" + } + }, + { + "id":18, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE18_TITLE", + "description":"TUTORIAL_PAGE18_TEXT", + "imageClass":"sdc-tutorial-page-18-image" + } + }, + { + "id":19, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE19_TITLE", + "description":"TUTORIAL_PAGE19_TEXT", + "imageClass":"sdc-tutorial-page-19-image" + } + }, + { + "id":20, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE20_TITLE", + "description":"TUTORIAL_PAGE20_TEXT", + "imageClass":"sdc-tutorial-page-20-image" + } + }, + { + "id":21, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE21_TITLE", + "description":"TUTORIAL_PAGE21_TEXT", + "imageClass":"sdc-tutorial-page-21-image" + } + }, + { + "id":22, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE22_TITLE", + "description":"TUTORIAL_PAGE22_TEXT", + "imageClass":"sdc-tutorial-page-22-image" + } + }, + { + "id":23, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE23_TITLE", + "description":"TUTORIAL_PAGE23_TEXT", + "imageClass":"sdc-tutorial-page-23-image" + } + }, + { + "id":24, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE24_TITLE", + "description":"TUTORIAL_PAGE24_TEXT", + "imageClass":"sdc-tutorial-page-24-image" + } + }, + { + "id":25, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE25_TITLE", + "description":"TUTORIAL_PAGE25_TEXT", + "imageClass":"sdc-tutorial-page-25-image" + } + }, + { + "id":26, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE26_TITLE", + "description":"TUTORIAL_PAGE26_TEXT", + "imageClass":"sdc-tutorial-page-26-image" + } + }, + { + "id":27, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE27_TITLE", + "description":"TUTORIAL_PAGE27_TEXT", + "imageClass":"sdc-tutorial-page-27-image" + } + }, + { + "id":28, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE28_TITLE", + "description":"TUTORIAL_PAGE28_TEXT", + "imageClass":"sdc-tutorial-page-28-image" + } + }, + { + "id":29, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE29_TITLE", + "description":"TUTORIAL_PAGE29_TEXT", + "imageClass":"sdc-tutorial-page-29-image" + } + }, + { + "id":30, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE30_TITLE", + "description":"TUTORIAL_PAGE30_TEXT", + "imageClass":"sdc-tutorial-page-30-image" + } + } + + ] + } +} diff --git a/catalog-ui/configurations/menu.json b/catalog-ui/configurations/menu.json new file mode 100644 index 0000000000..cd451e79f1 --- /dev/null +++ b/catalog-ui/configurations/menu.json @@ -0,0 +1,576 @@ +{ + "roles":{ + "ADMIN":{ + "title": "Admin's Workspace", + "pages":[], + "states":{ + "NOT_CERTIFIED_CHECKOUT":{ + "ANY":[ + {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest" , "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "NOT_CERTIFIED_CHECKIN": { + "ANY": [ + {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + {"text": "View","action": "openViewerModal"} + ] + }, + "READY_FOR_CERTIFICATION": { + "ANY":[ + {"text": "View","action": "openViewerModal"} + ] + }, + "CERTIFICATION_IN_PROGRESS":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "CERTIFIED":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + } + }, + "DESIGNER":{ + "title": "Designer's Workspace", + "pages":[], + "dashboard": { + "showCreateNew": true, + "showCreateNewProduct": false + }, + "changeLifecycleStateButtons":{ + "NOT_CERTIFIED_CHECKOUT":{ "submitForTesting": {"text":"Submit for Testing", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + "checkIn": {"text":"Check in", "url":"lifecycleState/CHECKIN", "confirmationModal": "lifecycleState/CHECKIN"}, + "deleteVersion": {"text":"Delete Version", "url":"lifecycleState/UNDOCHECKOUT", "alertModal": "lifecycleState/UNDOCHECKOUT"} + }, + "CERTIFIED":{ "checkOut": {"text":"Check Out", "url":"lifecycleState/CHECKOUT"} + }, + "NOT_CERTIFIED_CHECKIN":{ "submitForTesting": {"text":"Submit for Testing", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + "checkOut": {"text":"Check Out", "url":"lifecycleState/CHECKOUT"} + } + }, + "states":{ + "NOT_CERTIFIED_CHECKOUT":{ + "ANY":[ + {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "NOT_CERTIFIED_CHECKIN": { + "ANY": [ + {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + {"text": "View","action": "openViewerModal"} + ] + }, + "READY_FOR_CERTIFICATION": { + "ANY":[ + {"text": "View","action": "openViewerModal"} + ] + }, + "CERTIFICATION_IN_PROGRESS":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "CERTIFIED":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + }, + "folder":[ + {"text": "Active Projects", "groupname": "IN_PROGRESS" }, + {"text": "Check Out", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"}, + {"text": "Check In", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"}, + {"text": "Followed Projects", "groupname": "FOLLOWING" }, + {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"}, + {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"}, + {"text": "Certified", "group": "FOLLOWING", "state": "CERTIFIED"} + ] + + }, + "PRODUCT_STRATEGIST":{ + "title": "Product Strategist's Workspace", + "pages":[], + "dashboard": { + "showCreateNew": false, + "showCreateNewProduct": false + }, + "changeLifecycleStateButtons":{}, + + "states":{ + "NOT_CERTIFIED_CHECKOUT":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "NOT_CERTIFIED_CHECKIN": { + "ANY": [ + {"text": "View","action": "openViewerModal"} + ] + }, + "READY_FOR_CERTIFICATION": { + "ANY":[ + {"text": "View","action": "openViewerModal"} + ] + }, + "CERTIFICATION_IN_PROGRESS":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "CERTIFIED":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + }, + "folder":[ + {"text": "Active Projects", "groupname": "IN_PROGRESS" }, + {"text": "Check Out", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"}, + {"text": "Check In", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"}, + {"text": "Followed Projects", "groupname": "FOLLOWING" }, + {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"}, + {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"}, + {"text": "Certified", "group": "FOLLOWING", "state": "CERTIFIED"} + ] + }, + "PRODUCT_MANAGER":{ + "title": "Product Manager Workspace", + "pages":[], + "dashboard": { + "showCreateNew": false, + "showCreateNewProduct": true + }, + "changeLifecycleStateButtons":{ + "NOT_CERTIFIED_CHECKOUT":{ "checkIn": {"text":"Check in", "url":"lifecycleState/CHECKIN", "confirmationModal": "lifecycleState/CHECKIN"}, + "deleteVersion":{"text":"Delete Version", "url":"lifecycleState/UNDOCHECKOUT", "alertModal": "lifecycleState/UNDOCHECKOUT"} + }, + "NOT_CERTIFIED_CHECKIN":{ "checkOut": {"text":"Check Out", "url":"lifecycleState/CHECKOUT"} + } + }, + "states":{ + "NOT_CERTIFIED_CHECKOUT":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "NOT_CERTIFIED_CHECKIN": { + "ANY": [ + {"text": "View","action": "openViewerModal"} + ] + }, + "READY_FOR_CERTIFICATION": { + "ANY":[ + {"text": "View","action": "openViewerModal"} + ] + }, + "CERTIFICATION_IN_PROGRESS":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "CERTIFIED":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + }, + "folder":[ + {"text": "Active Projects", "groupname": "IN_PROGRESS" }, + {"text": "Check Out", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"}, + {"text": "Check In", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"}, + {"text": "Followed Projects", "groupname": "FOLLOWING" }, + {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"}, + {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"}, + {"text": "Certified", "group": "FOLLOWING", "state": "CERTIFIED"} + ] + }, + "TESTER":{ + "title": "Tester's Workspace", + "pages":[], + "dashboard": { + "showCreateNew": false, + "showCreateNewProduct": false + }, + "changeLifecycleStateButtons":{ + "READY_FOR_CERTIFICATION":{ "startTesting": {"text":"Start Testing", "url":"lifecycleState/startCertification"} + + }, + "CERTIFICATION_IN_PROGRESS":{ "accept": {"text":"Accept", "url":"lifecycleState/certify", "confirmationModal": "lifecycleState/certify"}, + "reject": {"text":"Reject", "url":"lifecycleState/failCertification", "confirmationModal": "lifecycleState/failCertification"}, + "cancel": {"text":"Cancel","action":"changeLifecycleState", "url":"lifecycleState/cancelCertification", "confirmationModal": "lifecycleState/cancel"} + } + }, + "states": { + "READY_FOR_CERTIFICATION":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"}, + {"text":"Start Testing","action":"changeLifecycleState", "url":"lifecycleState/startCertification"} + ] + }, + "CERTIFICATION_IN_PROGRESS":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"}, + {"text":"Accept","action":"changeLifecycleState", "url":"lifecycleState/certify", "confirmationModal": "lifecycleState/certify"}, + {"text":"Reject","action":"changeLifecycleState", "url":"lifecycleState/failCertification", "confirmationModal": "lifecycleState/failCertification"}, + {"text":"Cancel","action":"changeLifecycleState", "url":"lifecycleState/cancelCertification", "confirmationModal": "lifecycleState/cancel" } + ] + } + }, + "folder":[ + {"text": "Active Projects", "groupname": "FOLLOWING" }, + {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"}, + {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"} + ] + }, + "OPS":{ + "title": "Operations Workspace", + "pages":[], + "dashboard": { + "showCreateNew": false, + "showCreateNewProduct": false + }, + "changeLifecycleStateButtons":{ + "DISTRIBUTION_APPROVED":{ "distribute": {"text":"Distribute", "url":"distribution/PROD/activate"}, + "monitor": {"text":"Monitor", "disabled":true} + }, + "DISTRIBUTED":{ "redistribute": {"text":"Redistribute", "url":"distribution/PROD/activate"}, + "monitor": {"text":"Monitor", "url":"distribution-state/monitor"} + } + }, + "states": { + "CERTIFIED": { + "DISTRIBUTION_APPROVED": [ + {"text": "View","action": "openViewerModal"}, + {"text": "Distribute","action":"changeLifecycleState", "url":"distribution/PROD/activate"} + ], + "DISTRIBUTED": [ + {"text": "View","action": "openViewerModal"}, + {"text": "Monitor","action":"openDistributionModal", "url":"distribution-state/monitor"}, + {"text": "Redistribute","action":"changeLifecycleState", "url":"distribution/PROD/activate"} + ] + } + }, + "folder":[ + {"text": "Active Projects", "groupname": "FOLLOWING" }, + {"text": "Waiting For Distribution", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_APPROVED"}, + {"text": "Distributed", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTED"} + ] + }, + "GOVERNOR":{ + "title": "Governance Rep's Workspace", + "pages":[], + "dashboard": { + "showCreateNew": false, + "showCreateNewProduct": false + }, + "changeLifecycleStateButtons":{ + "DISTRIBUTION_NOT_APPROVED":{ "approve": {"text":"Approve", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve"}, + "reject": {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"} + }, + "DISTRIBUTION_APPROVED":{ "reject": {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"} + }, + "DISTRIBUTED": { "reject": {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"} + }, + "DISTRIBUTION_REJECTED": { "approve": {"text": "Approve", "url": "distribution-state/approve", "confirmationModal": "distribution-state/approve"} + } + }, + "states": { + "CERTIFIED": { + "DISTRIBUTION_NOT_APPROVED": [ + {"text": "View","action": "openViewerModal"}, + {"text":"Approve","action":"changeLifecycleState", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve"}, + {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"} + ], + "DISTRIBUTION_APPROVED": [ + {"text": "View","action": "openViewerModal"}, + {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"} + ], + "DISTRIBUTED": [ + {"text": "View","action": "openViewerModal"}, + {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"} + ], + "DISTRIBUTION_REJECTED": [ + {"text": "View","action": "openViewerModal"}, + {"text":"Approve","action":"changeLifecycleState", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve"} + ] + } + }, + "folder":[ + {"text": "Active Projects", "groupname": "FOLLOWING" }, + {"text": "Waiting For Approval", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_NOT_APPROVED"}, + {"text": "Distribution Rejected", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_REJECTED"}, + {"text": "Distribution Approved", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_APPROVED,DISTRIBUTED"} + + ] + } + }, + "confirmationMessages": { + "lifecycleState/CHECKIN": {"showComment":true, "title": "Check in confirmation", "message": "Please add comment and confirm the check in."}, + "lifecycleState/CHECKOUT": {"showComment":true, "title": "Check out confirmation", "message": "Please add comment and confirm the check out."}, + "lifecycleState/certify": {"showComment":true, "title": "Distribution confirmation", "message": "Please add comment and confirm test results."}, + "lifecycleState/cancel": {"showComment":true, "title": "Cancel test", "message": "Please add comment and cancel test."}, + "lifecycleState/failCertification": {"showComment":true, "title": "Rejection confirmation", "message": "Please add comment and confirm test results."}, + "lifecycleState/CERTIFICATIONREQUEST": {"showComment":true, "title": "Submit for testing", "message": "Please add comment and submit for testing."}, + "distribution-state/approve": {"showComment":true, "title": "Distribution confirmation", "message": "Please add comment and confirm %1 approval for distribution."}, + "distribution-state/reject": {"showComment":true, "title": "Rejection confirmation", "message": "Please add comment and confirm %1 rejection for distribution."}, + "updateTemplate": {"showComment":false, "title": "Update Template Confirmation", "message": "Modifying the Template might cause losing of previous information"} + }, + "alertMessages": { + "lifecycleState/UNDOCHECKOUT": {"title": "Delete Version Confirmation", "message": "Are you sure you want to delete this version?"}, + "exitWithoutSaving": {"title": "Exit Without Saving Confirmation", "message": "All unsaved changes will be lost. Are you sure you want to exit this page?"}, + "deleteInstance": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1 ?"}, + "deleteInput": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1 ?"} + }, + "statuses": { + "inDesign": { + "name": "In Design", + "values": [ + "NOT_CERTIFIED_CHECKOUT", + "NOT_CERTIFIED_CHECKIN" + ] + }, + "readyForCertification": { + "name": "Ready For Testing", + "values": ["READY_FOR_CERTIFICATION"] + }, + "inCertification": { + "name": "In Testing", + "values": ["CERTIFICATION_IN_PROGRESS"] + }, + "certified": { + "name": "Certified", + "values": ["CERTIFIED"] + }, + "distributed": { + "name": "Distributed", + "values": ["DISTRIBUTED"] + } + }, + "categoriesDictionary": { + "Mobility": "Application Layer 4+", + "Network L1-3": "Network Layer 2-3", + "Network L4": "Network Layer 4+", + "VoIP Call Control": "Application Layer 4+" + }, + "catalogMenuItem":{ + "DESIGNER":{ + "states":{ + "NOT_CERTIFIED_CHECKOUT":{ + "ANY":[ + {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + {"text":"View" ,"action":"openViewerModal"} + ], + "NOT_OWNER":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "NOT_CERTIFIED_CHECKIN": { + "ANY": [ + {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + {"text": "View","action": "openViewerModal"} + ] + }, + "READY_FOR_CERTIFICATION": { + "ANY":[ + {"text": "View","action": "openViewerModal"} + ] + }, + "CERTIFICATION_IN_PROGRESS":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "CERTIFIED":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + + } + }, + "PRODUCT_MANAGER":{ + "states":{ + "NOT_CERTIFIED_CHECKOUT":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ], + "NOT_OWNER":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "NOT_CERTIFIED_CHECKIN": { + "ANY": [ + {"text": "View","action": "openViewerModal"} + ] + }, + "READY_FOR_CERTIFICATION": { + "ANY":[ + {"text": "View","action": "openViewerModal"} + ] + }, + "CERTIFICATION_IN_PROGRESS":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "CERTIFIED":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + }, + "folder":[ + {"text": "Active Projects", "groupname": "IN_PROGRESS" }, + {"text": "Check Out", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"}, + {"text": "Check In", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"}, + {"text": "Followed Projects", "groupname": "FOLLOWING" }, + {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"}, + {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"}, + {"text": "Certified", "group": "FOLLOWING", "state": "CERTIFIED"} + ] + }, + "PRODUCT_STRATEGIST":{ + "title": "Product Strategist's Workspace", + "pages":[], + "dashboard": { + "showCreateNew": false, + "showCreateNewProduct": true + }, + "states":{ + "NOT_CERTIFIED_CHECKOUT":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ], + "NOT_OWNER":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "NOT_CERTIFIED_CHECKIN": { + "ANY": [ + {"text": "View","action": "openViewerModal"} + ] + }, + "READY_FOR_CERTIFICATION": { + "ANY":[ + {"text": "View","action": "openViewerModal"} + ] + }, + "CERTIFICATION_IN_PROGRESS":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + }, + "CERTIFIED":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + }, + "folder":[ + {"text": "Active Projects", "groupname": "IN_PROGRESS" }, + {"text": "Check Out", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"}, + {"text": "Check In", "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"}, + {"text": "Followed Projects", "groupname": "FOLLOWING" }, + {"text": "Ready For Testing", "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"}, + {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"}, + {"text": "Certified", "group": "FOLLOWING", "state": "CERTIFIED"} + ] + }, + "OTHER":{ + "states":{ + "ANY":{ + "ANY":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + } + } + }, + "LifeCycleStatuses":{ + "NOT_CERTIFIED_CHECKOUT": { "text":"In Design Check Out", "icon": "checkout-editable-status-icon"}, + "NOT_CERTIFIED_CHECKIN" : { "text":"In Design Check In", "icon": "checkin-status-icon "}, + "READY_FOR_CERTIFICATION": { "text":"Ready for testing"}, + "CERTIFICATION_IN_PROGRESS": { "text":"In Testing"}, + "CERTIFIED": { "text":"Certified", "icon": "checkin-status-icon "} + }, + "DistributionStatuses":{ + "DISTRIBUTION_NOT_APPROVED": { "text":"Waiting For Distribution"}, + "DISTRIBUTION_APPROVED" : { "text":"Distribution Approved"}, + "DISTRIBUTION_REJECTED": { "text":"Distribution Rejected"}, + "DISTRIBUTED": { "text":"Distributed"} + }, + "canvas_buttons":{ + "checkIn": {"text":"Check in","action":"changeLifecycleState", "url":"lifecycleState/CHECKIN", "confirmationModal": "lifecycleState/CHECKIN"}, + "submitForTesting": {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}, + "deleteVersion": {"text":"Delete Version", "action":"changeLifecycleState", "url":"lifecycleState/UNDOCHECKOUT", "alertModal": "lifecycleState/UNDOCHECKOUT"} + }, + + "component_workspace_menu_option": { + "VFC":[ + {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"}, + {"text":"Icon", "action":"onMenuItemPressed", "state": "workspace.icons"}, + {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"}, + {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"}, + {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"}, + {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"}, + {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"}, + {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"} + ], + "VL":[ + {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"}, + {"text":"Icon", "action":"onMenuItemPressed", "state": "workspace.icons"}, + {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"}, + {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"}, + {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"}, + {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"}, + {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"}, + {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"} + ], + "CP":[ + {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"}, + {"text":"Icon", "action":"onMenuItemPressed", "state": "workspace.icons"}, + {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"}, + {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"}, + {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"}, + {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"}, + {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"}, + {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"} + ], + "VF":[ + {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"}, + {"text":"Icon", "action":"onMenuItemPressed", "state": "workspace.icons"}, + {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"}, + {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"}, + {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"}, + {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"}, + {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"}, + {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"}, + {"text":"Deployment", "action":"onMenuItemPressed", "state": "workspace.deployment"}, + {"text":"Inputs", "action":"onMenuItemPressed", "state": "workspace.resource_inputs"} + ], + "SERVICE":[ + {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"}, + {"text":"Icon", "action":"onMenuItemPressed", "state": "workspace.icons"}, + {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"}, + {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"}, + {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"}, + {"text":"Management Workflow", "action":"onMenuItemPressed", "state": "workspace.management_workflow"}, + {"text":"Network Call Flow ", "action":"onMenuItemPressed", "state": "workspace.network_call_flow"}, + {"text":"Monitor ", "action":"onMenuItemPressed", "state": "workspace.distribution", "disabledRoles": ["ADMIN", "TESTER", "GOVERNOR", "DESIGNER", "PRODUCT_MANAGER", "PRODUCT_STRATEGIST"]}, + {"text":"Deployment", "action":"onMenuItemPressed", "state": "workspace.deployment"}, + {"text":"Inputs", "action":"onMenuItemPressed", "state": "workspace.service_inputs"} + ], + "PRODUCT":[ + {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"}, + {"text":"Hierarchy", "action":"onMenuItemPressed", "state": "workspace.hierarchy"}, + {"text":"Icon", "action":"onMenuItemPressed", "state": "workspace.icons"}, + {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"} + ] + } + + +} diff --git a/catalog-ui/configurations/mock.json b/catalog-ui/configurations/mock.json new file mode 100644 index 0000000000..21836a837d --- /dev/null +++ b/catalog-ui/configurations/mock.json @@ -0,0 +1,192 @@ +{ + "sdcConfig": { + "api": { + "GET_user": "/v1/user/:id", + "GET_user_authorize": "/v1/user/authorize", + "GET_resource": "/v1/resource/:id", + "GET_resources_certified_not_abstract": "/v1/catalog/resources/certified/notabstract/:id", + "GET_resources_certified_abstract": "/v1/catalog/resources/certified/abstract/:id", + "GET_resource_property": "/v1/:type/:entityId/property/:id", + "GET_resource_artifact": "/v1/catalog/:type/:entityId/artifacts/:id", + "GET_service_artifact": "/v1/catalog/services/:serviceId/artifacts/:id", + "GET_resource_artifact_types": "/v1/artifactTypes", + "GET_resource_validate_name": "/v1/resource/validate-name/:name", + "GET_service": "/v1/catalog/services/:id", + "GET_service_validate_name": "/v1/catalog/services/validate-name/:name", + "GET_service_distributions":"/v1/catalog/services/:uuid/distribution", + "GET_service_distributions_components":"/v1/catalog/services/distribution/:distributionId", + "POST_service_distribution_deploy" : "/v1/catalog/services/:serviceId/distribution/:distributionId/markDeployed", + "GET_element": "/v1/followed", + "GET_catalog": "/v1/screen", + "GET_resource_category": "/v1/resourceCategories", + "GET_service_category": "/v1/serviceCategories", + "resource_instance": "/v1/catalog/services/:serviceId/resourceInstance/:id", + "GET_resource_instance_property": "/v1/catalog/services/:serviceId/resourceInstance/:resourceInstanceId/property/:propertyValueId", + "GET_relationship": "/v1/catalog/services/:serviceId/resourceInstance/:action", + "GET_lifecycle_state_resource": "/v1/catalog/:type/:id/lifecycleState/:action", + "GET_lifecycle_state_CHECKIN":"lifecycleState/CHECKIN", + "GET_lifecycle_state_CERTIFICATIONREQUEST":"lifecycleState/CERTIFICATIONREQUEST", + "GET_lifecycle_state_UNDOCHECKOUT":"lifecycleState/UNDOCHECKOUT", + "root": "http://localhost:9999" + }, + "logConfig": { + "minLogLevel": "debug", + "prefix": "sdcApp" + }, + "cookie": { + "junctionName": "IV_JCT", + "prefix": "AMWEBJCT!", + "userIdSuffix": "USER_ID", + "userFirstName": "HTTP_CSP_FIRSTNAME", + "userLastName": "HTTP_CSP_LASTNAME", + "userEmail": "HTTP_CSP_EMAIL", + "xEcompRequestId": " X-ECOMP-RequestID" + }, + "userTypes": { + "admin": { + "userId": "jh0003", + "email": "mail@gmail.com", + "firstName": "Jimmy", + "lastName": "Hendrix", + "xEcompRequestId": "ccccc" + }, + "designer": { + "userId": "cs0008", + "email": "designer@sdc.com", + "firstName": "Carlos", + "lastName": "Santana", + "xEcompRequestId": "ccccc" + }, + "tester": { + "userId": "kb0004", + "email": "tester@sdc.com", + "firstName": "Kate", + "lastName": "Bush", + "xEcompRequestId": "ccccc" + }, + "governor": { + "userId": "gv0001", + "email": "governor@sdc.com", + "firstName": "gover", + "lastName": "nor", + "xEcompRequestId": "ccccc" + }, + "ops": { + "userId": "op0001", + "email": "ops@sdc.com", + "firstName": "op", + "lastName": "ss", + "xEcompRequestId": "ccccc" + }, + "product_strategist": { + "userId": "ps0001", + "email": "product_strategist@sdc.com", + "firstName": "Orit", + "lastName": "Barda", + "xEcompRequestId": "ccccc" + }, + "product_manager": { + "userId": "pm0001", + "email": "product_manager@sdc.com", + "firstName": "Orit", + "lastName": "Barda", + "xEcompRequestId": "ccccc" + } + }, + "statuses": { + "inDesign": { + "name": "In Design", + "values": [ + "NOT_CERTIFIED_CHECKOUT", + "NOT_CERTIFIED_CHECKIN" + ] + }, + "readyForCertification": { + "name": "Ready for certification", + "values": "READY_FOR_CERTIFICATION" + }, + "inCertification": { + "name": "In Certification", + "values": "CERTIFICATION_IN_PROGRESS" + }, + "certified": { + "name": "Certified", + "values": "CERTIFIED" + }, + "distributed": { + "name": "Distributed", + "values": "TBD" + } + }, + "imagesPath": "" + }, + "roles":{ + "ADMIN":{ + "pages":[], + "states":{ + "NOT_CERTIFIED_CHECKOUT":[ + {"text":"Check in","action":"changeLifecycleState", "url":"CHECKIN"}, + {"text":"View" ,"action":"openViewerModal"}, + {"text":"Edit" ,"action":"goToEntity"} + ], + "NOT_CERTIFIED_CHECKIN":[ + {"text":"Check out","action":"changeLifecycleState", "url":"CHECKOUT"}, + {"text":"Submit for Testing","action":"changeLifecycleState", "url":"certificationRequest"}, + {"text":"View" ,"action":"openViewerModal"} + + ], + "READY_FOR_CERTIFICATION":[], + "CERTIFICATION_IN_PROGRESS":[], + "CERTIFIED":[] + } + }, + "DESIGNER":{ + "pages":[ + ], + "states":{ + "NOT_CERTIFIED_CHECKOUT":[ + {"text":"Edit" ,"action":"goToEntity"}, + {"text":"Check in","action":"changeLifecycleState", "url":"CHECKIN"}, + {"text":"Submit for Testing","action":"changeLifecycleState", "url":"certificationRequest"}, + {"text":"View" ,"action":"openViewerModal"} + ], + "NOT_CERTIFIED_CHECKIN":[ + {"text":"Check out","action":"changeLifecycleState", "url":"CHECKOUT"}, + {"text":"Submit for Testing","action":"changeLifecycleState", "url":"certificationRequest"}, + {"text":"View" ,"action":"openViewerModal"} + ], + "READY_FOR_CERTIFICATION":[ + {"text":"View" ,"action":"openViewerModal"} + ], + "CERTIFICATION_IN_PROGRESS":[ + {"text":"View" ,"action":"openViewerModal"} + ], + "CERTIFIED":[ + {"text":"View" ,"action":"openViewerModal"} + ] + } + + }, + "TESTER":{ + "pages":[], + "READY_FOR_CERTIFICATION":[], + "CERTIFICATION_IN_PROGRESS":[], + "CERTIFIED":[] + + }, + "OPS":{ + "pages":[], + "READY_FOR_CERTIFICATION":[], + "CERTIFICATION_IN_PROGRESS":[], + "CERTIFIED":[] + + }, + "GOVERNOR":{ + "pages":[], + "READY_FOR_CERTIFICATION":[], + "CERTIFICATION_IN_PROGRESS":[], + "CERTIFIED":[] + + } + } +} diff --git a/catalog-ui/configurations/prod.json b/catalog-ui/configurations/prod.json new file mode 100644 index 0000000000..cbe579c3e9 --- /dev/null +++ b/catalog-ui/configurations/prod.json @@ -0,0 +1,432 @@ +{ + "environment": "prod", + "api": { + + "GET_component": "/v1/catalog/:type/:id", + "PUT_component": "/v1/catalog/:type/:id/metadata", + "GET_component_validate_name": "/v1/catalog/:type/validate-name/:name", + "POST_changeLifecycleState": "/v1/catalog/", + "component_api_root": "/v1/catalog/", + "welcome_page_video_url": "http://0.0.0.0:8282/moti/movie", + + "GET_user": "/v1/user/:id", + "GET_user_authorize": "/v1/user/authorize", + "GET_all_users": "/v1/user/users", + "POST_create_user": "/v1/user", + "DELETE_delete_user": "/v1/user/:id", + "POST_edit_user_role": "/v1/user/:id/role", + "GET_resource": "/v1/catalog/resources/:id", + "GET_resources_latestversion_notabstract":"/v1/catalog/:type/latestversion/notabstract/:id", + "GET_resources_certified_not_abstract": "/v1/catalog/resources/certified/notabstract/:id", + "GET_resources_certified_abstract": "/v1/catalog/resources/certified/abstract/:id", + "GET_resource_property": "/v1/catalog/:type/:entityId/properties/:id", + "PUT_resource": "/v1/catalog/resources/:id/metadata", + "GET_resource_artifact": "/v1/catalog/:type/:entityId/artifacts/:id", + "GET_download_instance_artifact": "/v1/catalog/:type/:entityId/resourceInstances/:instanceId/artifacts/:id", + "POST_instance_artifact": "/v1/catalog/:type/:entityId/resourceInstance/:instanceId/artifacts/:id", + "GET_resource_additional_information": "/v1/catalog/:type/:entityId/additionalinfo/:id", + "GET_service_artifact": "/v1/catalog/services/:serviceId/artifacts/:id", + "GET_resource_interface_artifact": "/v1/catalog/:type/:entityId/standard/:operation/artifacts/:id", + "GET_resource_api_artifact": "/v1/catalog/:type/:entityId/artifacts/api/:id", + "GET_configuration_ui": "/v1/configuration/ui", + "GET_resource_validate_name": "/v1/catalog/resources/validate-name/:name", + "GET_activity_log": "/v1/catalog/audit-records/:type/:id", + "GET_service": "/v1/catalog/services/:id", + "GET_service_validate_name": "/v1/catalog/services/validate-name/:name", + "GET_service_distributions":"/v1/catalog/services/:uuid/distribution", + "GET_service_distributions_components":"/v1/catalog/services/distribution/:distributionId", + "POST_service_distribution_deploy" : "/v1/catalog/services/:serviceId/distribution/:distributionId/markDeployed", + "GET_element": "/v1/followed", + "GET_catalog": "/v1/screen", + "GET_ecomp_menu_items": "/v1/user/:userId/functionalmenu", + "GET_resource_category": "/v1/resourceCategories", + "GET_service_category": "/v1/serviceCategories", + "resource_instance": "/v1/catalog/:entityType/:entityId/resourceInstance/:id", + "GET_resource_instance_property": "/v1/catalog/:type/:entityId/resourceInstance/:componentInstanceId/property/:propertyValueId", + "GET_relationship": "/v1/catalog/:entityType/:entityId/resourceInstance/:action", + "GET_lifecycle_state_resource": "/v1/catalog/:type/:id/lifecycleState/:action", + "GET_lifecycle_state_CHECKIN":"lifecycleState/CHECKIN", + "GET_lifecycle_state_CERTIFICATIONREQUEST":"lifecycleState/CERTIFICATIONREQUEST", + "GET_lifecycle_state_UNDOCHECKOUT":"lifecycleState/UNDOCHECKOUT", + "root": "/sdc1/feProxy/rest", + "PUT_service": "/v1/catalog/services/:id/metadata", + "GET_download_artifact": "/v1/catalog/", + "GET_SDC_Version": "/version", + "GET_categories": "/v1/categories/:types", + "POST_category": "/v1/category/:types/:categoryId", + "POST_subcategory": "/v1/category/:types/:categoryId/subCategory/:subCategoryId", + "POST_change_instance_version": "/v1/catalog/:entityType/:entityId/resourceInstance/:id/changeVersion", + "GET_requirements_capabilities": "/v1/catalog/requirmentsCapabilities/:type/:id", + "GET_resource_artifact_types": "/v1/artifactTypes", + "GET_product_catalog": "/v1/productScreen", + "GET_product_category": "/v1/productCategories", + "GET_product_category_temp": "/v1/artifactTypes", + "POST_product": "/v1/catalog/products/:id/metadata", + "GET_product_validate_name": "/v1/catalog/services/validate-name/:name", + "GET_product": "/v1/catalog/products/:id", + "GET_product_sub_category": "/v1/productSubCategories", + "GET_onboarding": "/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products/packages", + "GET_component_from_csar_uuid": "/v1/catalog/resources/csar/:csar_uuid", + "kibana": "/sdc1/kibanaProxy/" + }, + "resourceTypesFilter":{ + "resource":["CP","VFC"], + "service":["CP","VF"], + "product":[] + }, + "logConfig": { + "minLogLevel": "debug", + "prefix": "sdcApp" + }, + "cookie": { + "junctionName": "IV_JCT", + "prefix": "AMWEBJCT!", + "userIdSuffix": "USER_ID", + "userFirstName": "HTTP_CSP_FIRSTNAME", + "userLastName": "HTTP_CSP_LASTNAME", + "userEmail": "HTTP_CSP_EMAIL", + "xEcompRequestId": " X-ECOMP-RequestID" + }, + "imagesPath": "/sdc1", + "cpEndPointInstances" : ["cloudep","ossep","personep","premisesep"], + "toscaFileExtension":"yaml,yml", + "csarFileExtension":"csar", + "openSource": true, + "categories": {}, + "testers": { + "RESOURCE": { + "Network L2-3": "DL-ASDCL1-3ResourceCertificationTeam", + "Network L4+": "DL-ASDCL4-7ResourceCertificationTeam", + "Application L4+": "DL-ASDCL4-7ResourceCertificationTeam", + "default": "DL-ASDCL1-3ResourceCertificationTeam;DL-ASDCL4-7ResourceCertificationTeam" + }, + "SERVICE": { + "Network L1-3": "DL-ASDCL1-4ServiceCertificationTeam", + "Network L4+": "DL-ASDCL4-7ServiceCertificationTeam", + "default": "DL-ASDCL1-4ServiceCertificationTeam;DL-ASDCL4-7ServiceCertificationTeam" + } + }, + "roles": ["ADMIN", "TESTER", "GOVERNOR", "OPS", "DESIGNER", "PRODUCT_MANAGER", "PRODUCT_STRATEGIST"], + "tutorial": { + "tabs": [ + { + "id":1, + "name":"TUTRIAL_GENERAL_TAB_1", + "defaultPage":1 + }, + { + "id":2, + "name":"TUTRIAL_GENERAL_TAB_2", + "defaultPage":9 + }, + { + "id":3, + "name":"TUTRIAL_GENERAL_TAB_3", + "defaultPage":12 + } + ], + "pages": + [ + { + "id":1, + "template": "text-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE1_TITLE", + "description":"TUTORIAL_PAGE1_TEXT" + } + + }, + { + "id":2, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE2_TITLE", + "description":"TUTORIAL_PAGE2_TEXT", + "imageClass":"sdc-tutorial-page-2-image" + } + }, + { + "id":3, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE3_TITLE", + "description":"TUTORIAL_PAGE3_TEXT", + "imageClass":"sdc-tutorial-page-3-image" + } + }, + { + "id":4, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE4_TITLE", + "description":"TUTORIAL_PAGE4_TEXT", + "imageClass":"sdc-tutorial-page-4-image" + } + }, + { + "id":5, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE5_TITLE", + "description":"TUTORIAL_PAGE5_TEXT", + "imageClass":"sdc-tutorial-page-5-image" + } + }, + { + "id":6, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE6_TITLE", + "description":"TUTORIAL_PAGE6_TEXT", + "imageClass":"sdc-tutorial-page-6-image" + } + }, + { + "id":7, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE7_TITLE", + "description":"TUTORIAL_PAGE7_TEXT", + "imageClass":"sdc-tutorial-page-7-image" + } + }, + { + "id":8, + "template": "image-template", + "tab": 1, + "data":{ + "title":"TUTORIAL_PAGE8_TITLE", + "description":"TUTORIAL_PAGE8_TEXT", + "imageClass":"sdc-tutorial-page-8-image" + } + }, + { + "id":9, + "template": "text-template", + "tab": 2, + "data":{ + "title":"TUTORIAL_PAGE9_TITLE", + "description":"TUTORIAL_PAGE9_TEXT" + } + }, + { + "id":10, + "template": "image-template", + "tab": 2, + "data":{ + "title":"TUTORIAL_PAGE10_TITLE", + "description":"TUTORIAL_PAGE10_TEXT", + "imageClass":"sdc-tutorial-page-10-image" + } + }, + { + "id":11, + "template": "image-template", + "tab": 2, + "data":{ + "title":"TUTORIAL_PAGE11_TITLE", + "description":"TUTORIAL_PAGE11_TEXT", + "imageClass":"sdc-tutorial-page-11-image" + } + }, + { + "id":12, + "template": "text-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE12_TITLE", + "description":"TUTORIAL_PAGE12_TEXT" + } + }, + { + "id":13, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE13_TITLE", + "description":"TUTORIAL_PAGE13_TEXT", + "imageClass":"sdc-tutorial-page-13-image" + } + }, + { + "id":14, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE14_TITLE", + "description":"TUTORIAL_PAGE14_TEXT", + "imageClass":"sdc-tutorial-page-14-image" + } + }, + { + "id":15, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE15_TITLE", + "description":"TUTORIAL_PAGE15_TEXT", + "imageClass":"sdc-tutorial-page-15-image" + } + }, + { + "id":16, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE16_TITLE", + "description":"TUTORIAL_PAGE16_TEXT", + "imageClass":"sdc-tutorial-page-16-image" + } + }, + { + "id":17, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE17_TITLE", + "description":"TUTORIAL_PAGE17_TEXT", + "imageClass":"sdc-tutorial-page-17-image" + } + }, + { + "id":18, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE18_TITLE", + "description":"TUTORIAL_PAGE18_TEXT", + "imageClass":"sdc-tutorial-page-18-image" + } + }, + { + "id":19, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE19_TITLE", + "description":"TUTORIAL_PAGE19_TEXT", + "imageClass":"sdc-tutorial-page-19-image" + } + }, + { + "id":20, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE20_TITLE", + "description":"TUTORIAL_PAGE20_TEXT", + "imageClass":"sdc-tutorial-page-20-image" + } + }, + { + "id":21, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE21_TITLE", + "description":"TUTORIAL_PAGE21_TEXT", + "imageClass":"sdc-tutorial-page-21-image" + } + }, + { + "id":22, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE22_TITLE", + "description":"TUTORIAL_PAGE22_TEXT", + "imageClass":"sdc-tutorial-page-22-image" + } + }, + { + "id":23, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE23_TITLE", + "description":"TUTORIAL_PAGE23_TEXT", + "imageClass":"sdc-tutorial-page-23-image" + } + }, + { + "id":24, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE24_TITLE", + "description":"TUTORIAL_PAGE24_TEXT", + "imageClass":"sdc-tutorial-page-24-image" + } + }, + { + "id":25, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE25_TITLE", + "description":"TUTORIAL_PAGE25_TEXT", + "imageClass":"sdc-tutorial-page-25-image" + } + }, + { + "id":26, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE26_TITLE", + "description":"TUTORIAL_PAGE26_TEXT", + "imageClass":"sdc-tutorial-page-26-image" + } + }, + { + "id":27, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE27_TITLE", + "description":"TUTORIAL_PAGE27_TEXT", + "imageClass":"sdc-tutorial-page-27-image" + } + }, + { + "id":28, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE28_TITLE", + "description":"TUTORIAL_PAGE28_TEXT", + "imageClass":"sdc-tutorial-page-28-image" + } + }, + { + "id":29, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE29_TITLE", + "description":"TUTORIAL_PAGE29_TEXT", + "imageClass":"sdc-tutorial-page-29-image" + } + }, + { + "id":30, + "template": "image-template", + "tab": 3, + "data":{ + "title":"TUTORIAL_PAGE30_TITLE", + "description":"TUTORIAL_PAGE30_TEXT", + "imageClass":"sdc-tutorial-page-30-image" + } + } + + ] + } + +} |