import { MediaInfo } from "./Types"

export type User = {
    id: string | null,
    accountId: string | null,
    sessionId: string | null,
    nickName: string | null,
    firstName: string | null,
    patronymic: string | null,
    lastName: string | null,
    birthDate: string | null,
    languageId: string | null,
    email: string | null,
    isAuthenticated: boolean
  }
  
export type UserInfo = {
  avatarData: MediaInfo | null,
  accessToken: string | null,
} & User
  
export type UserInformationEditModel = {
  firstName: string | null,
  patronymic: string | null,
  lastName: string | null,
}
  
export type BirthDateEditModel = {
  birthDate: string | null,
}

export type LanguageEditModel = {
  languageId: string | null,
}
  
  
export type LoginModel = {
  login: string,
  password: string,
  ip?: string | null,
}

export type RefreshModel = {
  // refreshToken: string,
  ip?: string | null,
}

export type SessionModel = {
  id: string,
  country: string | null,
  region: string | null,
  // latitude: number,
  // longitude: number,
  userAgent: string | null,

  expiredDate: Date,
}

export type DeleteSessionModel = {
  sessionId: string,
}