{
  "key": "com.metainf.confluence.plugin.pagetreeexporter.pagetree-word-exporter-plugin",
  "name": "Content Exporter",
  "enableLicensing": true,
  "description": "A Connect add-on for Confluence that allows users export content, pages, page trees, comments, blog posts with a single click or two",
  "vendor": {
    "name": "META-INF",
    "url": "https://www.meta-inf.hu/"
  },
  "baseUrl": "https://content-exporter-new.addon-eu.meta-inf.hu",
  "regionBaseUrls": {
    "US": "https://content-exporter-new.addon.meta-inf.hu",
    "EU": "https://content-exporter-new.addon-eu.meta-inf.hu",
    "DE": "https://content-exporter-new.addon-eu.meta-inf.hu"
  },
  "links": {
    "self": "https://content-exporter-new.addon-eu.meta-inf.hu/atlassian-connect.json",
    "homepage": "https://content-exporter-new.addon-eu.meta-inf.hu/atlassian-connect.json",
    "documentation": "http://www.meta-inf.hu"
  },
  "authentication": {
    "type": "jwt"
  },
  "apiMigrations": {
    "gdpr": true,
    "context-qsh": true,
    "signed-install": true
  },
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "scopes": [
    "READ",
    "WRITE",
    "ACT_AS_USER"
  ],
  "modules": {
    "spaceToolsTabs": [
      {
        "url": "/view/profiles/space?space={space.key}",
        "location": "cex-admin-space-tools",
        "name": {
          "value": "Export Profiles"
        },
        "key": "cex-profiles-space"
      }
    ],
    "webSections": [
      {
        "location": "system.admin",
        "weight": 110,
        "key": "cex-admin-section",
        "name": {
          "value": "Content Exporter"
        },
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      },
      {
        "location": "system.space.tools",
        "weight": 600,
        "key": "cex-admin-space-tools",
        "name": {
          "value": "Content Exporter"
        },
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      }
    ],
    "adminPages": [
      {
        "url": "/view/configuration",
        "name": {
          "value": "General settings"
        },
        "location": "system.admin/cex-admin-section",
        "weight": 100,
        "key": "configuration-global"
      },
      {
        "url": "/view/custom-stylesheet",
        "name": {
          "value": "Custom Stylesheets"
        },
        "location": "system.admin/cex-admin-section",
        "weight": 150,
        "key": "custom-stylesheet-global"
      },
      {
        "url": "/view/profiles/global",
        "name": {
          "value": "Export Profiles"
        },
        "location": "system.admin/cex-admin-section",
        "weight": 200,
        "key": "cex-profiles-global"
      },
      {
        "url": "/view/fonts",
        "name": {
          "value": "PDF Custom Fonts"
        },
        "location": "system.admin/cex-admin-section",
        "weight": 250,
        "key": "cex-fonts"
      },
      {
        "url": "/view/remote-api",
        "name": {
          "value": "Remote API"
        },
        "location": "system.admin/cex-admin-section",
        "weight": 100,
        "key": "remote-api"
      }
    ],
    "staticContentMacros": [
      {
        "key": "custom-field-macro",
        "renderingMethod": "get",
        "name": {
          "value": "Custom Field"
        },
        "description": {
          "value": "Inserts custom fields into the document"
        },
        "url": "/api/macros/custom-field?fieldName={fieldName}&format={format}",
        "parameters": [
          {
            "identifier": "fieldName",
            "name": {
              "value": "Field name"
            },
            "type": "enum",
            "required": true,
            "multiple": false,
            "defaultValue": "",
            "values": [
              "DOCUMENT_TITLE",
              "DOCUMENT_VERSION",
              "PAGE_NO",
              "TOTAL_PAGE_NO",
              "DOCUMENT_CREATED",
              "DOCUMENT_LAST_MODIFIED",
              "CREATOR_FULL_NAME",
              "CREATOR_USERNAME",
              "LAST_MODIFIER_FULL_NAME",
              "LAST_MODIFIER_USERNAME",
              "EXPORT_DATE"
            ]
          },
          {
            "identifier": "format",
            "name": {
              "value": "Date format"
            },
            "description": {
              "value": "Valid only for date fields"
            },
            "type": "string",
            "required": false,
            "multiple": false,
            "defaultValue": ""
          }
        ],
        "icon": {
          "width": 80,
          "height": 80,
          "url": "/images/custom-field-icon.png"
        },
        "outputType": "inline",
        "bodyType": "none"
      },
      {
        "key": "page-bottom-macro",
        "renderingMethod": "get",
        "name": {
          "value": "Page bottom"
        },
        "description": {
          "value": "Inserts a block of text at the end of the page"
        },
        "parameters": [],
        "url": "/api/macros/page-bottom?pageId={page.id}&pageVersion={page.version}&macroId={macro.id}&macroBody={macro.body}&outputType={output.type}",
        "icon": {
          "width": 80,
          "height": 80,
          "url": "/images/page-bottom-icon.png"
        },
        "outputType": "block",
        "bodyType": "rich-text"
      },
      {
        "key": "page-break-macro",
        "renderingMethod": "get",
        "name": {
          "value": "Page break"
        },
        "categories": [
          "formatting"
        ],
        "description": {
          "value": "Inserts a page break when exporting"
        },
        "url": "/api/macros/pageBreak?renderMode={output.type}",
        "icon": {
          "width": 80,
          "height": 80,
          "url": "/images/page-break-icon.png"
        },
        "outputType": "block",
        "bodyType": "none"
      }
    ],
    "webItems": [
      {
        "key": "export-content",
        "url": "/view/startExport/{content.id}?pageId={page.id}",
        "location": "system.content.action",
        "context": "addon",
        "weight": 1,
        "name": {
          "value": "Export with Content Exporter"
        },
        "conditions": [
          {
            "or": [
              {
                "condition": "addon_property_equal_to",
                "params": {
                  "propertyKey": "Configuration",
                  "objectName": "docExportEnabled",
                  "value": "true"
                }
              },
              {
                "condition": "addon_property_equal_to",
                "params": {
                  "propertyKey": "Configuration",
                  "objectName": "htmlExportEnabled",
                  "value": "true"
                }
              },
              {
                "condition": "addon_property_equal_to",
                "params": {
                  "propertyKey": "Configuration",
                  "objectName": "pdfExportEnabled",
                  "value": "true"
                }
              },
              {
                "condition": "addon_property_exists",
                "invert": true,
                "params": {
                  "propertyKey": "Configuration"
                }
              }
            ]
          },
          {
            "or": [
              {
                "condition": "addon_property_equal_to",
                "invert": true,
                "params": {
                  "propertyKey": "Configuration",
                  "objectName": "exportPermission",
                  "value": "CONFLUENCE_PERMISSION"
                }
              },
              {
                "condition": "has_space_permission",
                "params": {
                  "permission": "EXPORT"
                }
              }
            ]
          }
        ],
        "target": {
          "type": "dialog",
          "options": {
            "width": "100%",
            "height": "100%",
            "chrome": false
          }
        },
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "tooltip": {
          "value": "Export with Content Exporter"
        },
        "icon": {
          "width": 16,
          "height": 16,
          "url": "/images/content-exporter-logo.png"
        }
      }
    ],
    "contentBylineItems": [
      {
        "key": "export-content-byline",
        "url": "/view/startExport/{content.id}?pageId={page.id}",
        "location": "system.content.action",
        "context": "addon",
        "weight": 1,
        "name": {
          "value": "Export"
        },
        "conditions": [
          {
            "or": [
              {
                "condition": "addon_property_equal_to",
                "params": {
                  "propertyKey": "Configuration",
                  "objectName": "docExportEnabled",
                  "value": "true"
                }
              },
              {
                "condition": "addon_property_equal_to",
                "params": {
                  "propertyKey": "Configuration",
                  "objectName": "htmlExportEnabled",
                  "value": "true"
                }
              },
              {
                "condition": "addon_property_equal_to",
                "params": {
                  "propertyKey": "Configuration",
                  "objectName": "pdfExportEnabled",
                  "value": "true"
                }
              },
              {
                "condition": "addon_property_exists",
                "invert": true,
                "params": {
                  "propertyKey": "Configuration"
                }
              }
            ]
          },
          {
            "or": [
              {
                "condition": "addon_property_equal_to",
                "invert": true,
                "params": {
                  "propertyKey": "Configuration",
                  "objectName": "exportPermission",
                  "value": "CONFLUENCE_PERMISSION"
                }
              },
              {
                "condition": "has_space_permission",
                "params": {
                  "permission": "EXPORT"
                }
              }
            ]
          }
        ],
        "target": {
          "type": "dialog",
          "options": {
            "width": "100%",
            "height": "100%",
            "chrome": false
          }
        },
        "styleClasses": [
          "webitem",
          "system-present-webitem"
        ],
        "tooltip": {
          "value": "Export with Content Exporter"
        },
        "icon": {
          "width": 16,
          "height": 16,
          "url": "/images/content-exporter-logo.png"
        }
      }
    ],
    "dialogs": [
      {
        "key": "mi-generic-dialog",
        "url": "view/dialog/open",
        "options": {
        }
      },
      {
        "key": "export-profile-edit-dialog",
        "url": "/profiles/open-dialog?id={ac.profileId}&space={ac.spaceKey}",
        "options": {
        }
      }
    ]
  }
}
