{
  "key": "com.soldevelo.apps.resource_planning",
  "baseUrl": "https://apps-resourceplanning.soldevelo.com",
  "name": "Team Planner",
  "description": "Team Planner. Current version is 1.0.15.",
  "enableLicensing": true,
  "vendor": {
    "name": "SolDevelo",
    "url": "http://www.soldevelo.com"
  },
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "scopes": ["READ", "WRITE", "ADMIN", "ACT_AS_USER"],
  "translations": {
    "paths": {
      "en-US": "/atlaskit/en_US.json"
    }
  },
  "modules": {
    "webSections": [
      {
        "location": "admin_plugins_menu",
        "name": {
          "value": "Team Planner"
        },
        "key": "team-planner-settings-section"
      }
    ],
    "webItems": [
      {
        "key": "team-planner-main-opener",
        "location": "system.top.navigation.bar",
        "name": {
          "value": "Team Planner"
        },
        "url": "/plugins/servlet/ac/com.soldevelo.apps.resource_planning/team-planner-dashboard",
        "context": "product",
        "icon": {
          "width": 20,
          "height": 20,
          "url": "/images/team-planner-icon.png"
        },
        "conditions" : [
          {
            "or": [
              {
                "condition": "addon_property_contains_context",
                "params": {
                  "propertyKey": "appAccessPermissions",
                  "objectName": "userIds",
                  "contextParameter": "user.accountId"
                }
              },
              {
                "condition": "addon_property_contains_any_user_group",
                "params": {
                  "propertyKey": "appAccessPermissions",
                  "objectName": "groupIds"
                }
              },
              { 
                "condition": "addon_property_equal_to",
                "invert": true,
                "params": {
                  "propertyKey": "appAccessPermissions",
                  "objectName": "allUsers",
                  "value": "false"
                }
              }
            ]
          }
        ]
      }
    ],
    "adminPages": [
      {
        "key": "permissions",
        "location": "admin_plugins_menu/team-planner-settings-section",
        "name": {
          "value": "Team Planner Permissions"
        },
        "url": "/permissions"
      }
    ],
    "generalPages": [
      {
        "key": "team-planner-dashboard",
        "location": "none",
        "name": {
          "value": "Team Planner - Dashboard"
        },
        "url": "/resource-planning"
      },
      {
        "key": "plan-view",
        "location": "none",
        "name": {
          "value": "Team Planner - Plan"
        },
        "url": "/plan-view"
      }
    ]
  },
  "apiMigrations": {
    "context-qsh": true
  }
}
