mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 18:13:48 -04:00
32 lines
741 B
TypeScript
32 lines
741 B
TypeScript
import {Socials} from './socials'
|
|
import {notification_preferences} from './user-notification-preferences'
|
|
|
|
export type User = {
|
|
id: string
|
|
createdTime: number
|
|
name: string
|
|
username: string
|
|
avatarUrl: string
|
|
link: Socials // Social links
|
|
isBannedFromPosting?: boolean
|
|
userDeleted?: boolean
|
|
}
|
|
|
|
export type PrivateUser = {
|
|
id: string // same as User.id
|
|
email?: string
|
|
initialDeviceToken?: string
|
|
initialIpAddress?: string
|
|
notificationPreferences: notification_preferences
|
|
blockedUserIds: string[]
|
|
blockedByUserIds: string[]
|
|
locale?: string
|
|
}
|
|
|
|
export type UserActivity = {
|
|
user_id: string // same as User.id
|
|
last_online_time: string
|
|
}
|
|
|
|
export type UserAndPrivateUser = {user: User; privateUser: PrivateUser}
|