export type CreateJobType = {
  title: string;
  description: string;
  location: string;
  type: "fullTime" | "partTime" | "contract";
};

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

export type Pager = {
  page: number;
  limit: number;
  totalItems: number;
  totalPages: number;
  prevPage: boolean | null;
  nextPage: string | null;
};

export type JobsResponse = {
  pager: Pager;
  jobs: Job[];
};

export type GetJobsResponse = {
  status: number;
  success: boolean;
  results: JobsResponse;
};

export type Resume = {
  _id: string;
  job: Job;
  fullName: string;
  fatherName: string;
  placeOfBirth: string;
  birthday: string;
  resumeUrl: string;
  status: "Pending" | "Accepted" | "Rejected";
  createdAt: string;
  updatedAt: string;
};

export type ResumesResponse = {
  pager: Pager;
  resumes: Resume[];
};

export type GetResumesResponse = {
  status: number;
  success: boolean;
  results: ResumesResponse;
};
