core/asset-types/asset-types.service.ts
        
AssetTypesService is being used to manage a cache of all existing asset types. This service is injected in the AssetOverviewNavigationFactory class, which will trigger the initialization of the cache as the constructor is called.
| Methods | 
| 
 | 
| constructor(inventory: InventoryService, apiService: ApiService, appStateService: AppStateService) | ||||||||||||
| 
                                    Parameters :
                                     
 | 
| getAssetTypeById | ||||||||
| getAssetTypeById(assetTypeId: string) | ||||||||
| Returns an asset type from the cache based on the id. 
                        Parameters :
                        
                         
 
                        Returns :      IManagedObjectIManagedObject which represents the asset type. | 
| getAssetTypeByName | ||||||||
| getAssetTypeByName(name: string) | ||||||||
| Returns an asset type from the cache based on the unique name property. 
                        Parameters :
                        
                         
 
                        Returns :      IManagedObjectIManagedObject which represents the asset type. | 
| Async getIcon | |||||||||||||||
| getIcon(type: string, open) | |||||||||||||||
| Extracts an icon from an asset type. Defaults to false. 
                        Parameters :
                        
                         
 
                        Returns :      Promise<string>Returns an icon for a given asset type. | 
| Async initAssetTypesCache | 
| initAssetTypesCache() | 
| Queries available asset types and adds every asset type to the local cache. 
                        Returns :      Promise<IManagedObject[]>IManagedObject table of asset types. |