Interface PluginDeployerHandler

interface PluginDeployerHandler {
    deployBackendPlugins(backendPlugins): Promise<undefined | number>;
    deployFrontendPlugins(frontendPlugins): Promise<undefined | number>;
    disablePlugin(pluginId): Promise<boolean>;
    enablePlugin(pluginId): Promise<boolean>;
    getDeployedPlugin(pluginId): undefined | DeployedPlugin;
    getDeployedPluginIds(): Promise<readonly `${string}.${string}@${string}`[]>;
    getDeployedPlugins(): Promise<DeployedPlugin[]>;
    getDeployedPluginsById(pluginId): DeployedPlugin[];
    getPluginDependencies(pluginToBeInstalled): Promise<undefined | PluginDependencies>;
    undeployPlugin(pluginId): Promise<boolean>;
    uninstallPlugin(pluginId): Promise<boolean>;
}

Implemented by

Methods

  • Marks the given plugins as "disabled". While the plugin remains installed, it will no longer be used. Has no effect if the plugin is not installed

    Parameters

    • pluginId: `${string}.${string}@${string}`

      the plugin to disable

    Returns Promise<boolean>

    whether the plugin was installed, enabled and could be disabled

  • Marks the given plugins as "enabled". Has no effect if the plugin is not installed.

    Parameters

    • pluginId: `${string}.${string}@${string}`

      the plugin to enabled

    Returns Promise<boolean>

    whether the plugin was installed, disabled and could be enabled

  • Removes the plugin from the locations to which it had been deployed. This operation is not safe - references to deleted assets may remain.

    Parameters

    • pluginId: `${string}.${string}@${string}`

    Returns Promise<boolean>

  • Removes the plugin from the location it originally resided on disk. Unless --uncompressed-plugins-in-place is passed to the CLI, this operation is safe.

    Parameters

    • pluginId: `${string}.${string}@${string}`

    Returns Promise<boolean>