export type LoginType = 1 | 2 | 3 | 4; // 1-OTP, 2-Google, 3-Apple, 4-Normal

export interface AuthUser {
  id: number;
  user_name: string;
  full_name: string;
  email: string;
  country_code: string;
  mobile_number: string;
  country_name: string;
  image: string;
  bio: string;
  type: number;
  status: number;
  device_type: number;
  device_token: string;
  language_id: string;
  city_id: string;
  storage_type: number;
  is_buy: number;
  is_ads_free: number;
  is_premium_news: number;
  is_epaper: number;
  created_at: string;
  updated_at: string;
}

export interface AuthApiResponse {
  status: number;
  message: string;
  result: AuthUser[]; // API returns an array
}

export interface LoginPayload {
  type: LoginType;
  email: string;
  password: string;
  full_name: string;
  image: string;
  country_code: string;
  mobile_number: string;
  country_name: string;
  device_type: number;
  device_token: string;
}

export interface RegisterPayload {
  full_name: string;
  email: string;
  password: string;
  mobile_number: string;
  country_code: string;
  country_name: string;
  device_type: number;
  device_token: string;
}
