installPlugin(name, guid, updateClass, version) {

        if (!name) {
            throw new Error("null name");
        }

        if (!updateClass) {
            throw new Error("null updateClass");
        }

        const options = {
            updateClass,
            AssemblyGuid: guid
        };

        if (version) {
            options.version = version;
        }

        const url = this.getUrl(`Packages/Installed/${name}`, options);

        return this.ajax({
            type: "POST",
            url
        });
    }
/**
     * Installs or updates a new plugin
     */
Installs or updates a new plugin
Installs or updates a new plugin
installPlugin(name, guid, updateClass, version) {
        if (!name) {
            throw new Error("null name");
        }
        if (!updateClass) {
            throw new Error("null updateClass");
        }
        const options = {
            updateClass,
            AssemblyGuid: guid
        };
        if (version) {
            options.version = version;
        }
        const url = this.getUrl(`Packages/Installed/${name}`, options);
        return this.ajax({
            type: "POST",
            url
        });
    }
installPlugin ( name , guid , updateClass , version ) { if ( ! name ) { throw new Error ( "null name" ) ; } if ( ! updateClass ) { throw new Error ( "null updateClass" ) ; } const options = { updateClass , AssemblyGuid : guid } ; if ( version ) { options . version = version ; } const url = this . getUrl ( ` ${ name } ` , options ) ; return this . ajax ( { type : "POST" , url } ) ; }
Installs or updates a new plugin
Installs or updates a new plugin