export type DashboardType = 'super_admin' | 'business' | 'customer'

export interface UserProfile {
  about: string
  city: string
  address: string
  landline: string
  postalCode: string
  instagram: string
  telegramId: string
  linkedin: string
}

export interface AuthUser {
  id: string
  cellNumber: string
  email: string | null
  firstName: string | null
  lastName: string | null
  firstNameEn: string | null
  lastNameEn: string | null
  cellVerifiedAt: string | null
  roles: string[]
  dashboard: DashboardType
  profile: UserProfile
  businesses: {
    id: string
    name: string
    slug: string
    isOwner: boolean
    teamRole: string | null
    permissions: string[]
  }[]
  customerBusinesses: { id: string; name: string; slug: string }[]
}

export interface LoginResponse {
  message: string
  user: AuthUser
  accessToken: string
  refreshToken: string
}

export interface MeResponse {
  user: AuthUser
}

export interface RefreshResponse {
  message: string
  user: AuthUser
  accessToken: string
  refreshToken: string
}
