interface IUser<T = [], Key = "id"> {
    authorizedplugins?: TUserGetAuthorizedplugins extends T
        ? string[]
        : never[];
    avatar?: TUserGetAvatar extends T ? string : never;
    email:
        | (TUserGetEmail extends T ? string : never)
        | (Key extends "email" ? string : never);
    firstname?: TUserGetFirstname extends T ? string : never;
    id:
        | (TUserGetId extends T ? string : never)
        | (Key extends "id" ? string : never);
    isvalidated: TUserGetIsvalidated extends T ? boolean : never;
    lastmodificationdate: TUserGetLastmodificationdate extends T ? Date : never;
    lastname?: TUserGetLastname extends T ? string : never;
    organizations?: TUserGetOrganizations extends T ? string[] : never[];
    password: TUserGetPassword extends T ? string : never;
    passwordlastchanged: TUserGetPasswordlastchange extends T ? Date : never;
    plugins?: TUserGetPlugins extends T ? ClientPlugin[] : never[];
    projects?: TUserGetWorkspaces extends T ? string[] : never[];
    superuser: TUserGetSuperuser extends T ? boolean : never;
    usermodels?: TUserGetUsermodels extends T ? string[] : never[];
    workspaces?: TUserGetWorkspaces extends T ? string[] : never[];
}

Type Parameters

  • T = []
  • Key = "id"

Properties

authorizedplugins?: TUserGetAuthorizedplugins extends T ? string[] : never[]
avatar?: TUserGetAvatar extends T ? string : never
email:
    | (TUserGetEmail extends T ? string : never)
    | (Key extends "email" ? string : never)
firstname?: TUserGetFirstname extends T ? string : never
id:
    | (TUserGetId extends T ? string : never)
    | (Key extends "id" ? string : never)
isvalidated: TUserGetIsvalidated extends T ? boolean : never
lastmodificationdate: TUserGetLastmodificationdate extends T ? Date : never
lastname?: TUserGetLastname extends T ? string : never
organizations?: TUserGetOrganizations extends T ? string[] : never[]
password: TUserGetPassword extends T ? string : never
passwordlastchanged: TUserGetPasswordlastchange extends T ? Date : never
plugins?: TUserGetPlugins extends T ? ClientPlugin[] : never[]
projects?: TUserGetWorkspaces extends T ? string[] : never[]
superuser: TUserGetSuperuser extends T ? boolean : never
usermodels?: TUserGetUsermodels extends T ? string[] : never[]
workspaces?: TUserGetWorkspaces extends T ? string[] : never[]