UNPKG

idea-toolbox

Version:
36 lines (35 loc) 909 B
import { Resource } from './resource.model'; import { epochDateTime } from './epoch'; /** * Table: `idea_users`. */ export declare class User extends Resource { /** * Cognito sub. */ userId: string; /** * === username (from Cognito, **not in DynamoDB**). */ email: string; /** * The currently selected team in each project. */ protected currentTeamInProjects: { [project: string]: string; }; /** * Timestamp of creation. */ createdAt: epochDateTime; load(x: any): void; safeLoad(newData: any, safeData: any): void; /** * Get the current team for the user in the selected project. */ getCurrentTeamOfProject(project: string): string; /** * Set (or reset) the current team for the user in the selected project. */ setCurrentTeamOfProject(project: string, teamId?: string): void; }