<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
    xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
    xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
    xsi:type="MailApp">

  <Id>969968d2-da79-44cf-8333-bf345c1a6f91</Id>
  <Version>1.0.0.1</Version>
  <ProviderName>Netaix</ProviderName>
  <DefaultLocale>fr-FR</DefaultLocale>
  <DisplayName DefaultValue="Netaix" />
  <Description DefaultValue="Assistant IA Netaix dans Outlook — résumé, brouillons et extraction d'actions." />
  <IconUrl DefaultValue="https://addin.netaix.fr/manifest/icons/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://addin.netaix.fr/manifest/icons/icon-128.png" />
  <SupportUrl DefaultValue="https://app.netaix.fr/support" />

  <AppDomains>
    <AppDomain>https://app.netaix.fr</AppDomain>
    <AppDomain>https://addin.netaix.fr</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.5" />
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://addin.netaix.fr/outlook.html" />
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteMailbox</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </Rule>

  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.5">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="functionFile.url" />

          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="netaixGroup">
                <Label resid="groupLabel" />

                <Control xsi:type="Button" id="naixSummary">
                  <Label resid="summaryLabel" />
                  <Supertip>
                    <Title resid="summaryLabel" />
                    <Description resid="summaryDesc" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="taskpane.url" />
                  </Action>
                </Control>

                <Control xsi:type="Button" id="naixReply">
                  <Label resid="replyLabel" />
                  <Supertip>
                    <Title resid="replyLabel" />
                    <Description resid="replyDesc" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="taskpane.url" />
                  </Action>
                </Control>

                <Control xsi:type="Button" id="naixActions">
                  <Label resid="actionsLabel" />
                  <Supertip>
                    <Title resid="actionsLabel" />
                    <Description resid="actionsDesc" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="taskpane.url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://addin.netaix.fr/manifest/icons/icon-16.png" />
        <bt:Image id="icon32" DefaultValue="https://addin.netaix.fr/manifest/icons/icon-32.png" />
        <bt:Image id="icon80" DefaultValue="https://addin.netaix.fr/manifest/icons/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="functionFile.url" DefaultValue="https://addin.netaix.fr/commands.html" />
        <bt:Url id="taskpane.url" DefaultValue="https://addin.netaix.fr/outlook.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Netaix" />
        <bt:String id="summaryLabel" DefaultValue="Résumer" />
        <bt:String id="replyLabel" DefaultValue="Brouillon" />
        <bt:String id="actionsLabel" DefaultValue="Actions" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="summaryDesc" DefaultValue="Résumer le fil de discussion avec Netaix." />
        <bt:String id="replyDesc" DefaultValue="Générer 3 brouillons de réponse (formel, neutre, chaleureux)." />
        <bt:String id="actionsDesc" DefaultValue="Extraire les actions et deadlines du mail vers un projet Netaix." />
      </bt:LongStrings>
    </Resources>

    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.5">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <SupportsSharedFolders>true</SupportsSharedFolders>
            <FunctionFile resid="functionFile.url" />
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="netaixGroup11">
                  <Label resid="groupLabel" />
                  <Control xsi:type="Button" id="naixSummary11">
                    <Label resid="summaryLabel" />
                    <Supertip>
                      <Title resid="summaryLabel" />
                      <Description resid="summaryDesc" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="icon16" />
                      <bt:Image size="32" resid="icon32" />
                      <bt:Image size="80" resid="icon80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="taskpane.url" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
