{
  "key": "com.bhut.space-comments-new-plugin.space-comments",
  "baseUrl": "https://comments.beastiehut.cyou",
  "vendor": {
    "name": "BeastieHut",
    "url": "https://beastiehut.com/"
  },
  "name": "Space Comments Cloud",
  "authentication": {
    "type": "jwt"
  },
  "description": "Plugin with additional features for page footer/inline comments control",
  "lifecycle": {
    "installed": "/installed",
    "uninstalled": "/uninstalled"
  },
  "enableLicensing": true,
  "scopes": [
    "READ",
    "ACT_AS_USER"
  ],
  "apiMigrations": {
    "context-qsh": true,
    "signed-install": true
  },
  "apiVersion": 1,
  "modules": {
    "dialogs": [
      {
        "url": "/v1/bht-simple-comments-icons-dialog?pageId={page.id}",
        "options": {
          "height": "60%",
          "width": "60%",
          "header": {
            "value": "Comments"
          },
          "submitText": "Close"
        },
        "key": "bht-simple-comments-dialog-module-key"
      },
      {
        "url": "/v1/bht-unres-comments-icons-dialog?pageId={page.id}",
        "options": {
          "height": "60%",
          "width": "60%",
          "header": {
            "value": "Comments"
          },
          "submitText": "Close"
        },
        "key": "bht-unres-comments-dialog-module-key"
      },
      {
        "url": "/v1/bht-res-comments-icons-dialog?pageId={page.id}",
        "options": {
          "height": "60%",
          "width": "60%",
          "header": {
            "value": "Comments"
          },
          "submitText": "Close"
        },
        "key": "bht-res-comments-dialog-module-key"
      }
    ],
    "dynamicContentMacros": [
      {
        "key": "page-inline-comments",
        "name": {
          "value": "Page Inline Comments"
        },
        "icon": {
          "width": 80,
          "height": 80,
          "url": "../../images/bht_logo_80.png"
        },
        "url": "/v1/page-inline-comments?pageId={page.id}&newPageId={newPageId}&inclDesc={inclDesc}&hideReplies={hideReplies}&statusType={statusType}",
        "description": {
          "value": "Displays table of inline comments"
        },
        "outputType": "block",
        "bodyType": "none",
        "categories": [
          "reporting"
        ],
        "parameters": [
          {
            "identifier": "newPageId",
            "name": {
              "value": "Page ID"
            },
            "description": {
              "value": "Specify ID of page to display comments from"
            },
            "type": "string",
            "required": false,
            "multiple": false,
            "hidden": false
          },
          {
            "identifier": "statusType",
            "name": {
              "value": "Status Type"
            },
            "description": {
              "value": "Select the status of comments to be displayed"
            },
            "type": "enum",
            "required": true,
            "multiple": false,
            "hidden": false,
            "defaultValue": "All",
            "values": ["All", "Resolved", "Unresolved"]
          },
          {
            "identifier": "hideReplies",
            "name": {
              "value": "Hide replies"
            },
            "description": {
              "value": "Specify if comment replies should be hidden"
            },
            "type": "boolean",
            "required": false,
            "multiple": false,
            "hidden": false
          },
          {
            "identifier": "inclDesc",
            "name": {
              "value": "Include descendants"
            },
            "description": {
              "value": "Specify if comments from descendant pages should be included"
            },
            "type": "boolean",
            "required": false,
            "multiple": false,
            "hidden": false
          }
        ],
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      },
      {
        "key": "page-simple-comments",
        "name": {
          "value": "Page (footer) Comments"
        },
        "icon": {
          "width": 80,
          "height": 80,
          "url": "../../images/bht_logo_80.png"
        },
        "url": "/v1/page-simple-comments?pageId={page.id}&newPageId={newPageId}&inclDesc={inclDesc}&hideReplies={hideReplies}",
        "description": {
          "value": "Displays table of page (footer) comments"
        },
        "outputType": "block",
        "bodyType": "none",
        "categories": [
          "reporting"
        ],
        "parameters": [
          {
            "identifier": "newPageId",
            "name": {
              "value": "Page ID"
            },
            "description": {
              "value": "Specify ID of page to display comments from"
            },
            "type": "string",
            "required": false,
            "multiple": false,
            "hidden": false
          },
          {
            "identifier": "hideReplies",
            "name": {
              "value": "Hide replies"
            },
            "description": {
              "value": "Specify if comment replies should be hidden"
            },
            "type": "boolean",
            "required": false,
            "multiple": false,
            "hidden": false
          },
          {
            "identifier": "inclDesc",
            "name": {
              "value": "Include descendants"
            },
            "description": {
              "value": "Specify if comments from descendant pages should be included"
            },
            "type": "boolean",
            "required": false,
            "multiple": false,
            "hidden": false
          }
        ],
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      },
      {
        "key": "bht-page-attachments-props-comments",
        "name": {"value":  "Attachments Properties Comments"},
        "icon": {
          "width": 80,
          "height": 80,
          "url": "../../images/bht_logo_80.png"
        },
        "url": "/v1/bht-attachments-props-comments?pageId={page.id}",
        "description": {
          "value": "Displays table of comments from attachments' versioned properties."
        },
        "outputType": "block",
        "bodyType": "none",
        "categories": [
          "reporting"
        ]
      },
      {
        "key": "bht-page-attachments-inline-comments",
        "name": {"value":  "Attachments Inline Comments"},
        "icon": {
          "width": 80,
          "height": 80,
          "url": "../../images/bht_logo_80.png"
        },
        "url": "/v1/bht-attachments-inline-comments?pageId={page.id}",
        "description": {
          "value": "Displays table of inline pinned comments from attachments."
        },
        "outputType": "block",
        "bodyType": "none",
        "categories": [
          "reporting"
        ]
      },
      {
        "key": "bht-pages-all-comments",
        "name": {
          "value": "BHT pages all comments"
        },
        "icon": {
          "width": 80,
          "height": 80,
          "url": "../../images/bht_logo_80.png"
        },
        "url": "/v1/page-all-comments?pageId={page.id}&newPageId={newPageId}&inclDesc={inclDesc}&hideReplies={hideReplies}",
        "description": {
          "value": "Displays table of all page(s) comments"
        },
        "outputType": "block",
        "bodyType": "none",
        "categories": [
          "reporting"
        ],
        "parameters": [
          {
            "identifier": "newPageId",
            "name": {
              "value": "Page ID"
            },
            "description": {
              "value": "Specify ID of root page to display comments from"
            },
            "type": "string",
            "required": false,
            "multiple": false,
            "hidden": false
          },
          {
            "identifier": "hideReplies",
            "name": {
              "value": "Hide replies"
            },
            "description": {
              "value": "Specify if comment replies should be hidden"
            },
            "type": "boolean",
            "required": false,
            "multiple": false,
            "hidden": false
          },
          {
            "identifier": "inclDesc",
            "name": {
              "value": "Include descendants"
            },
            "description": {
              "value": "Specify if comments from descendant pages should be included"
            },
            "type": "boolean",
            "required": false,
            "multiple": false,
            "hidden": false
          }
        ],
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      }
    ],
    "webPanels": [
      {
        "url": "/v1/comments-web?pageId={page.id}",
        "location": "atl.page.metadata.banner",
        "layout": {
          "width": "70px",
          "height": "25px"
        },
        "weight": 200,
        "name": {
          "value": "Comments Web Panel"
        },
        "key": "comments-web-panel",
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ]
      }
    ],
    "generalPages": [
      {
        "url": "/v1/bht/profile-comments-menu",
        "location": "system.user/user-content",
        "name": {
          "value": "Comments"
        },
        "key": "bht-profile-comments-menu",
        "conditions": [
          {
            "condition": "user_is_logged_in"
          }
        ],
        "icon": {
          "width": 16,
          "height": 16,
          "url": "/images/simple_comment_icon.png"
        }
      }
    ]
  }
}
