PluginsApi - functional programming interface

  • Parameters

    Returns {
        disablePlugin(pluginId: string, version: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        enablePlugin(pluginId: string, version: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        getPluginConfiguration(pluginId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>)>;
        getPluginImage(pluginId: string, version: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>;
        getPluginManifest(pluginId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        getPlugins(options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginInfo[]>)>;
        uninstallPlugin(pluginId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        uninstallPluginByVersion(pluginId: string, version: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        updatePluginConfiguration(pluginId: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
    }

    • disablePlugin:function
      • Parameters

        • pluginId: string

          Plugin id.

        • version: string

          Plugin version.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Disable a plugin.

    • enablePlugin:function
      • Parameters

        • pluginId: string

          Plugin id.

        • version: string

          Plugin version.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Enables a disabled plugin.

    • getPluginConfiguration:function
      • Parameters

        • pluginId: string

          Plugin id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>)>

        Gets plugin configuration.

    • getPluginImage:function
      • Parameters

        • pluginId: string

          Plugin id.

        • version: string

          Plugin version.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>)>

        Gets a plugin's image.

    • getPluginManifest:function
      • Parameters

        • pluginId: string

          Plugin id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Gets a plugin's manifest.

    • getPlugins:function
      • Parameters

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginInfo[]>)>

        Gets a list of currently installed plugins.

    • uninstallPlugin:function
      • Parameters

        • pluginId: string

          Plugin id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Uninstalls a plugin.

    • uninstallPluginByVersion:function
      • Parameters

        • pluginId: string

          Plugin id.

        • version: string

          Plugin version.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Uninstalls a plugin by version.

    • updatePluginConfiguration:function
      • Accepts plugin configuration as JSON body.

        Parameters

        • pluginId: string

          Plugin id.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Updates plugin configuration.