interface IUserWithData<T = []> {
    authorizedplugins: "authorizedplugins"[] extends T ? string[] : never[];
    avatar?: "avatar"[] extends T ? Buffer : never;
    email: TUserGetEmail extends T ? string : never;
    firstname?: TUserGetFirstname extends T ? string : never;
    id: string | (TUserGetId extends T ? string : never);
    isvalidated: TUserGetIsvalidated extends T ? boolean : never;
    lastmodificationdate: TUserGetLastmodificationdate extends T ? Date : never;
    lastname?: TUserGetLastname extends T ? string : never;
    organizations: "organizations"[] extends T ? string[] : never[];
    password: TUserGetPassword extends T ? string : never;
    passwordlastchanged: TUserGetPasswordlastchange extends T ? Date : never;
    plugins: "plugins"[] extends T ? ClientPlugin[] : never[];
    projects: "projects"[] extends T
        ? Pick<IProject<("id" | "title")[]>, "id" | "title">[]
        : never[];
    superuser: TUserGetSuperuser extends T ? boolean : never;
    usermodels: "usermodels"[] extends T
        ? Pick<
            IUserModelWithData<
                ("id" | "owners" | "users" | "groups" | "model" | "template")[],
            >,
            "id" | "owners" | "users" | "groups" | "model" | "template",
        >[]
        : never[];
    workspaces: "workspaces"[] extends T
        ? Pick<IWorkspace<("id" | "name")[]>, "id" | "name">[]
        : never[];
}

Type Parameters

  • T = []

Hierarchy (View Summary)

Properties

authorizedplugins: "authorizedplugins"[] extends T ? string[] : never[]
avatar?: "avatar"[] extends T ? Buffer : never
email: TUserGetEmail extends T ? string : never
firstname?: TUserGetFirstname extends T ? string : never
id: string | (TUserGetId extends T ? string : never)
isvalidated: TUserGetIsvalidated extends T ? boolean : never
lastmodificationdate: TUserGetLastmodificationdate extends T ? Date : never
lastname?: TUserGetLastname extends T ? string : never
organizations: "organizations"[] extends T ? string[] : never[]
password: TUserGetPassword extends T ? string : never
passwordlastchanged: TUserGetPasswordlastchange extends T ? Date : never
plugins: "plugins"[] extends T ? ClientPlugin[] : never[]
projects: "projects"[] extends T
    ? Pick<IProject<("id" | "title")[]>, "id" | "title">[]
    : never[]
superuser: TUserGetSuperuser extends T ? boolean : never
usermodels: "usermodels"[] extends T
    ? Pick<
        IUserModelWithData<
            ("id" | "owners" | "users" | "groups" | "model" | "template")[],
        >,
        "id" | "owners" | "users" | "groups" | "model" | "template",
    >[]
    : never[]
workspaces: "workspaces"[] extends T
    ? Pick<IWorkspace<("id" | "name")[]>, "id" | "name">[]
    : never[]