@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
22 lines (21 loc) • 921 B
TypeScript
import type { User as UserInterface } from '@enonic-types/lib-auth';
import { Principal } from './Principal';
export declare interface UserConstructorParams {
displayName: Principal['displayName'];
idProvider: UserInterface['idProvider'];
key: UserInterface['key'];
login: UserInterface['login'];
email?: UserInterface['email'];
disabled?: UserInterface['disabled'];
modifiedTime?: Principal['modifiedTime'];
}
export declare class User extends Principal implements UserInterface {
readonly key: UserInterface['key'];
readonly type = "user";
readonly idProvider: UserInterface['idProvider'];
readonly login: UserInterface['login'];
readonly disabled: UserInterface['disabled'];
readonly email?: UserInterface['email'];
readonly hasPassword: boolean;
constructor({ displayName, key, modifiedTime, email, idProvider, login, disabled, }: UserConstructorParams);
}