export interface Job {
  _id: string;
  title: string;
  description: string;
  location: string;
  type: "fullTime" | "partTime" | "contract" | "internship";
  createdAt: string;
  updatedAt: string;
}

export interface Pager {
  page: number;
  limit: number;
  totalItems: number;
  totalPages: number;
  prevPage: boolean;
  nextPage: boolean;
}

export interface JobsResponse {
  status: number;
  success: boolean;
  results: {
    pager: Pager;
    jobs: Job[];
  };
}

export type ResumeType = {
  job: string;
  fullName: string;
  fatherName: string;
  placeOfBirth: string;
  birthday: string;
  resumeUrl: string;
};

export interface FileUrl {
  originalname: string;
  size: number;
  url: string;
  type: string;
}

export interface UploadResults {
  message: string;
  url: FileUrl;
}

export interface UploadResponse {
  status: number;
  success: boolean;
  results: UploadResults;
}
