import { FileType } from './Shared';

export interface Guarantor {
  id: string;
  employee_id: string;
  name: string;
  relationship: string;
  occupation?: string;
  phone: string;
  email?: string;
  address?: string;
  id_type?: string;
  id_number?: string;
  document_path?: string | null;
  created_at: string;
  updated_at: string;
}

export interface CreateGuarantorPayload {
  id?: string;
  name: string;
  relationship: string;
  occupation?: string;
  phone: string;
  email?: string;
  address?: string;
  id_type?: string;
  id_number?: string;
  document_path?: FileType;
}

export type UpdateGuarantorPayload = {
  employee_id?: string;
} & CreateGuarantorPayload;

export interface DeleteGuarantorPayload {
  employee_id: string;
  guarantor_id: string;
}

export interface DeleteGuarantorResponse {
  message: string;
  id?: string;
}
