{
  "$schema": "https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.schema.json",
  "manifestVersion": "devPreview",
  "id": "b6e3f0a2-7c14-4d3b-9a55-0d9b2f1a8c02",
  "version": "0.1.0",
  "name": {
    "short": "Odyssey Customer",
    "full": "Odyssey Customer panel for Outlook"
  },
  "description": {
    "short": "See the matched customer beside any email.",
    "full": "Shows the matched Odyssey customer and their rentals beside any Outlook email, and records the email to their customer record."
  },
  "developer": {
    "name": "Hector's Whips",
    "websiteUrl": "https://addin.hectorswhips.com",
    "privacyUrl": "https://addin.hectorswhips.com/privacy",
    "termsOfUseUrl": "https://addin.hectorswhips.com/terms"
  },
  "icons": {
    "outline": "assets/icon-32.png",
    "color": "assets/icon-128.png"
  },
  "accentColor": "#D50000",
  "localizationInfo": {
    "defaultLanguageTag": "en-US"
  },
  "authorization": {
    "permissions": {
      "resourceSpecific": [
        { "name": "MailboxItem.Read.User", "type": "Delegated" }
      ]
    }
  },
  "webApplicationInfo": {
    "id": "815a2e7c-7267-46bb-9c56-f8a6c1791bba",
    "resource": "api://addin.hectorswhips.com/815a2e7c-7267-46bb-9c56-f8a6c1791bba"
  },
  "validDomains": [
    "localhost:3000"
  ],
  "extensions": [
    {
      "requirements": {
        "scopes": ["mail"],
        "capabilities": [{ "name": "Mailbox", "minVersion": "1.5" }]
      },
      "runtimes": [
        {
          "id": "TaskPaneRuntime",
          "type": "general",
          "code": {
            "page": "https://addin.hectorswhips.com/src/taskpane/taskpane.html"
          },
          "lifetime": "short",
          "actions": [
            { "id": "ShowTaskpane", "type": "openPage", "view": "Customer", "pinnable": true }
          ]
        },
        {
          "id": "CommandsRuntime",
          "type": "general",
          "code": {
            "page": "https://addin.hectorswhips.com/src/commands/commands.html",
            "script": "https://addin.hectorswhips.com/src/commands/commands.js"
          },
          "lifetime": "short",
          "actions": [
            { "id": "recordEmail", "type": "executeFunction" }
          ]
        }
      ],
      "ribbons": [
        {
          "contexts": ["mailRead"],
          "tabs": [
            {
              "builtInTabId": "TabDefault",
              "groups": [
                {
                  "id": "odysseyGroup",
                  "label": "Odyssey",
                  "icons": [
                    { "size": 16, "url": "https://addin.hectorswhips.com/assets/icon-16.png" },
                    { "size": 32, "url": "https://addin.hectorswhips.com/assets/icon-32.png" },
                    { "size": 80, "url": "https://addin.hectorswhips.com/assets/icon-80.png" }
                  ],
                  "controls": [
                    {
                      "id": "openCustomerPanel",
                      "type": "button",
                      "label": "Customer",
                      "supertip": {
                        "title": "Open customer panel",
                        "description": "Show the matched customer, their rentals, and record this email to their Odyssey record."
                      },
                      "icons": [
                        { "size": 16, "url": "https://addin.hectorswhips.com/assets/icon-16.png" },
                        { "size": 32, "url": "https://addin.hectorswhips.com/assets/icon-32.png" },
                        { "size": 80, "url": "https://addin.hectorswhips.com/assets/icon-80.png" }
                      ],
                      "actionId": "ShowTaskpane"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
