@convergence/convergence
Version:
Convergence JavaScript Client
22 lines (21 loc) • 890 B
TypeScript
import { DomainUserIdentifier } from "./DomainUserIdentifier";
export declare enum DomainUserType {
NORMAL = "normal",
CONVERGENCE = "convergence",
ANONYMOUS = "anonymous"
}
export declare class DomainUserId {
readonly userType: DomainUserType;
readonly username: string;
static normal(username: string): DomainUserId;
static anonymous(username: string): DomainUserId;
static convergence(username: string): DomainUserId;
static guid(userType: DomainUserType, username: string): string;
static fromGuid(guid: string): DomainUserId;
static toDomainUserType(typeStr: string): DomainUserType;
static toDomainUserId(userId: DomainUserIdentifier): DomainUserId;
static of(userId: DomainUserIdentifier): DomainUserId;
constructor(userType: DomainUserType, username: string);
toGuid(): string;
equals(other: DomainUserId): boolean;
}