import type { Organization, User } from './organization';

export interface AuthResponse {
  success: boolean;
  data: {
    accessToken: string;
    refreshToken: string;
    accessTokenExpiresAt?: string;
    user: User;
    organizations: Organization[];
  };
}

export interface TrialRegistrationData {
  email: string;
  mobile: string;
  password: string;
  name: string;
  organizationName: string;
  organizationEmail: string;
  organizationType: 'CLINIC' | 'LAB';
}

export interface LoginData {
  email: string;
  password: string;
  rememberMe?: boolean;
}

export interface ForgotPasswordVerifyResponse {
  success: boolean;
  data: {
    user: AuthResponse['data']['user'];
    organizations: AuthResponse['data']['organizations'];
    redirectTo: string;
  };
}
