import { TasklistId, PreferenceId, UserId, ProjectId, ProjectOrder, OrganizationId, ProjectPortalMode } from 'teambition-types'; export interface PreferenceTipMap { [key: string]: boolean | string; } export interface PreferenceSchema { _id: PreferenceId; _userId: UserId; language: string; showProjects?: ProjectId[]; collectBehaviorLogs: boolean; organization: { isShowChildTeams: boolean; }; tasklist?: Record; tips: PreferenceTipMap; selections: Record; notifications: Record; notification: Record>>; emails: Record; lastNoticeDate?: string; lastWorkspace: OrganizationId; myTaskExecuteSort: string; myTaskInvolvesSort: string; myTaskCreatedSort: string; myFileOrder: string; libraryOrder: string; messageType: string; portalMode: ProjectPortalMode; projectOrder: ProjectOrder; inboxSortMode: string; openWindowMode: string; activityMode: 'text' | 'markdown'; postMode: 'html' | 'markdown'; quickCreateTask: boolean; quickReply: boolean; hasNew: boolean; switcherOn: boolean; memberBarMode: string; isUsePanel: boolean; }