export type LoginWithPasswordType = {
  email: string;
  password: string;
};

export type CheckHasAccountType = {
  email: string;
};

export type RegisterType = {
  phone: string;
  firstName: string;
  lastName: string;
  birthDate: string;
  nationalCode: string;
  password: string;
  code: number;
};

export type RefreshTokenType = {
  token: string;
};

export type TokenInfo = {
  token: string;
  expires: string;
};

export type ApiResponse<T> = {
  status: number;
  success: boolean;
  results: {
    data: T;
  };
};

export type RefreshTokenResponse = {
  tokenType: string;
  accessToken: TokenInfo;
  refreshToken: TokenInfo;
};
