UNPKG

inet-core

Version:
84 lines (83 loc) 2.49 kB
import { Observable } from 'rxjs'; import { HttpClientService } from './http-client.service'; import * as i0 from "@angular/core"; export declare class CoreService { private http; static instance: CoreService; private static environment; private $appCache; private applications; constructor(http: HttpClientService); logout(locale?: string): void; getAvatar(usercode: string, thumbnail?: number): string; isExternalUser(): boolean; isCommunity(): boolean; getOrg(): Observable<any[]>; searchOrgan(params?: any): Observable<any>; getSystemApplication(clearCached?: boolean): Observable<any[]>; getApps(): Observable<SystemApplication[]>; searchFirmAccount(params: any, callback: Function): void; updateLanguage(lang: string, callback?: Function): void; /** * Get the Image URL for the current app * @param fileName - the file name */ getImageUrl(fileName: string): string; /** * Build the file URL for the file server request * @param fileName - the given file name */ getFileUrl(fileName: string): string; getSsoRedirect(data: SsoRedirectData): string; convergePlugins(): Observable<any>; convergeSearch(params: any): Observable<any>; setEnvironment(v?: any): void; getEnvironment(): any; private getPath; /** * Gets File server path */ getFileServerPath(): string; /** * Gets assets path of current app */ getAssetsPath(): string; /** * Get the Image URL from module * @param moduleName - the module name * @param fileName - the file name */ getImageUrlFromModule(fileName: string, moduleName?: string): string; private logoutCurrentApp; private logoutApp; private getAppsWithoutContext; static ɵfac: i0.ɵɵFactoryDeclaration<CoreService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CoreService>; } export interface LogoutData { uuid: string; } export interface SsoRedirectData { url: string; application: string; redirect?: boolean; } export interface PathRedirectData { path: string; application: string; organId?: string; firmPrefix?: string; } export interface SystemApplication { domain?: string; firmContext?: string; homepage?: string; icon?: string; module?: string; name?: string; organId?: string; pattern?: string; prefixUri?: string; webContext?: string; widget?: string; }