import { ExpertiseOptionType, ExpertiseOptionValue } from "./checkboxType";
import { DropdownDataType } from "./dropdownType";

export type AuthFormValues = {
  email: string;
  password: string;
  code: string;
  name: string;
  first_name: string;
  last_name: string;
  gender: DropdownDataType;
  profession: DropdownDataType;
  phone: string;
  createPassword: string;
  password_confirmation: string;
  expertise_ids: string[];
};
export type OTPFormValues = {
  phone: string;
  code: string;
};

export type loginType = {
  email: string;
  password: string;
};
export type UpdatePasswordType = {
  current_password: string;
  password: string;
  password_confirmation: string;
};

export type loginResponseType = {
  access_token: string;
  token_type: string;
  user: {
    id: number;
    uuid: string;
    name: string;
    username: string;
    email: string;
    phone: string;
    status: string;
    email_verified_at: null;
    profile: {
      id: number;
      uuid: string;
      profession_id: number;
      image: null;
      thumbnail: null;
      gender: string;
      years_of_experience: null;
      phone: null;
      secondary_phone: null;
      country: null;
      city: null;
      postal_code: null;
      present_address: null;
      permanent_address: null;
      emergency_contact: null;
      emergency_relation: null;
      dob: null;
      height: null;
      blood_group: null;
      marital_status: null;
      religion: null;
      passport_id: null;
      national_id: null;
      birth_certificate_id: null;
      father_name: null;
      mother_name: null;
      about_me: null;
      created_at: string;
      updated_at: string;
    };
  };
};

export type registrationType = {
  first_name: string;
  last_name: string;
  email: string;
  phone: string;
  password: string;
  password_confirmation: string;
  expertise_ids: string[];
  profession_id: DropdownDataType | string;
  gender: DropdownDataType | string;
};

export type sentOtpType = {
  email?: string;
  number?: string;
};
export type checkCredentialsType = {
  text_param: string;
  type: string;
};
export type checkCredentialsResponseType = {
  exists: boolean;
};
