core/plugins/plugins.service.ts
        
                        Methods | 
                
                        
  | 
                
constructor(applicationService: ApplicationService, appStateService: AppStateService, client: FetchClient)
                     | 
                ||||||||||||
| 
                             
                                    Parameters :
                                     
                    
  | 
                
| Async addRemotes | ||||||||||||
                        
                    addRemotes(application: IApplication, plugins: ApplicationPlugin | ApplicationPlugin[])
                 | 
            ||||||||||||
| 
                         Updates the remotes field in the application configuration by adding new plugins. Important: if the remotes object is not set on the configuration object, remotes will not be added. Make sure that this object exists in the application configuration. 
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            Promise<PluginsConfig>
                        Returns updated application remotes.  | 
            
| Static convertInstalledRemotesToIds | ||||||
                        
                    convertInstalledRemotesToIds(remotes: ApplicationRemotePlugins)
                 | 
            ||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            string[]
                         | 
            
| Static createPluginId | ||||||||||||||||||||
                        
                    createPluginId(contextPath: string, plugin: ApplicationPlugin | string, version: string, useLatest)
                 | 
            ||||||||||||||||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            string
                         | 
            
| Async getChangelogFileContent | ||||||
                        
                    getChangelogFileContent(baseUrl: string)
                 | 
            ||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            Promise<string>
                         | 
            
| Async getCumulocityJsonFile | ||||||||
                        
                    getCumulocityJsonFile(application: IApplication)
                 | 
            ||||||||
| 
                         Fetches the application manifest. 
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            unknown
                        Returns the application manifest.  | 
            
| Async getFileContent | |||||||||
                        
                    getFileContent(baseUrl: string, fileType: "readme" | "changelog")
                 | 
            |||||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            Promise<string>
                         | 
            
| getMFExports | ||||||||||||||||||||
getMFExports(application: IApplication, excludedScopes: [], useLatest)
                 | 
            ||||||||||||||||||||
| 
                         Extracts a list of exported plugins from the application object. 
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            ApplicationPlugin[]
                        Returns a list of exported plugins.  | 
            
| getMFRemotes | ||||||||
getMFRemotes(application: IApplication)
                 | 
            ||||||||
| 
                         Extracts a list of remotes from the application object. 
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            ApplicationRemotePlugins
                        Returns list of remotes.  | 
            
| getPackageType | ||||||||
getPackageType(packageApplication: IApplication)
                 | 
            ||||||||
| 
                         Determines the type of a package. A package is OFFICIAL if it comes from management tenant and has a label attached called OFFICIAL. A package is COMMUNITY if it has a label called COMMUNITY. A package is CUSTOM if it does not have any label attached. A package is UNKNOWN if it has a label attached but it does not match COMMUNITY or OFFICIAL. Labels can be used to identify the status of a package. Community packages always need a license validation. The label will be shown on the application card to tell a user whether they are looking into an official or community package. 
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            PackageType
                        The package type.  | 
            
| Async getReadmeFileContent | ||||||
                        
                    getReadmeFileContent(baseUrl: string)
                 | 
            ||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            Promise<string>
                         | 
            
| isOwnedByManagement | ||||||||
isOwnedByManagement(app: IApplication)
                 | 
            ||||||||
| 
                         Verifies if an application is owned by management tenant. 
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            boolean
                        True if owned by management tenant.  | 
            
| isPackage | ||||||||
isPackage(application: IApplication)
                 | 
            ||||||||
| 
                         Checks if an application is a package. 
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            boolean
                        Returns true if the application is a package.  | 
            
| Async listPackages | ||||||||||
                        
                    listPackages(params: any)
                 | 
            ||||||||||
| 
                         Fetches a list of available packages. 
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            Promise<IApplication[]>
                        Returns a list of packages.  | 
            
| pluginsFromManifest | ||||||
pluginsFromManifest(manifest: IManifest)
                 | 
            ||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            ApplicationPlugin[]
                         | 
            
| Async removeRemotes | ||||||||||||
                        
                    removeRemotes(application: IApplication, plugins: ApplicationPlugin | ApplicationPlugin[])
                 | 
            ||||||||||||
| 
                         Updates the remotes field in the application configuration by removing plugins. 
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            Promise<PluginsConfig>
                        Returns updated application remotes.  | 
            
| Async resetRemotes | ||||||
                        
                    resetRemotes(application: IApplication)
                 | 
            ||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            unknown
                         | 
            
| Async setInitialRemotes | ||||||||
                        
                    setInitialRemotes(application: IApplication)
                 | 
            ||||||||
| 
                         Sets the initial state of remotes in the configuration (when it's missing), based on the list of remotes being in the application manifest. 
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            unknown
                        Returns a list of remotes that has been assigned to the configuration object.  | 
            
| sortVersions | ||||||||||||
sortVersions(source: literal type, order: "asc" | "desc")
                 | 
            ||||||||||||
                            Type parameters :
                            
  | 
                    ||||||||||||
| 
                         Sorts versions list or list of objects by version property Example Example :Example Example :
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            T[]
                        list of versions as array of strings or array of objects sorted by version property  | 
            
| sortVersions | |||||||||
sortVersions(source: string[], order: "asc" | "desc")
                 | 
            |||||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :      
                            string[]
                         | 
            
| sortVersions | |||||||||
sortVersions(source: any, order: "asc" | "desc")
                 | 
            |||||||||
| 
                             
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            any
                         | 
            
| Async updateRemotesInAppConfig | ||||||||||||||||
                        
                    updateRemotesInAppConfig(application: IApplication, plugins: ApplicationRemotePlugins, excludedRemotes?: ApplicationRemotePlugins)
                 | 
            ||||||||||||||||
| 
                         Updates the remotes field in the application configuration. 
                                Parameters :
                                
                                 
                        
 
                            Returns :          
                            Promise<PluginsConfig>
                        Returns updated application remotes.  |