inet-core
Version:
iNet Core
51 lines (50 loc) • 1.96 kB
TypeScript
import { UserProfile } from './model/user-profile';
import { HttpClientService } from './http-client.service';
import { Observable } from 'rxjs';
import { NewPassword } from "./model/new-password";
import { CoreService } from "./core.service";
import * as i0 from "@angular/core";
export declare class UserProfileService {
private http;
private coreService;
static instance: UserProfileService;
static readonly DEFAULT_AVATAR_URL = "data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
private profile;
private $systemProfileCache;
private systemProfile;
private $profileObservableCache;
private inventory;
private url;
constructor(http: HttpClientService, coreService: CoreService);
private loadSystemProfile;
/**
* Gets the currently LDAP profile of user logged
*/
getSystemProfile(): Observable<Object>;
/**
* Gets the curently profile of user logged
*/
getProfile(): Observable<Object>;
update(user: UserProfile): Observable<Object>;
changePassword(password: NewPassword): Observable<Object>;
getAvatarUrlByProfile(userProfile: UserProfile): string;
getAvatarUrl(): Promise<string>;
getFullName(): Promise<string>;
getSignPictureId(): Promise<string>;
getSignVerifyNumber(): Promise<string>;
increaseAvatarVersion(): void;
getAvatarVersion(): number;
/**
* Returns the profile associated with the username.
* @param username - {string} The username variable
*/
getProfileByUsername(username: string): Observable<any>;
/**
* Returns the avatar URL with the username.
* @param username - {string} The username variable
*/
getAvatarUrlByUsername(username: string): Promise<string>;
getDefaultAvatarUrl(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<UserProfileService>;
}