import { Offer, OfferId } from './offer';

export type Application = ApplicationData & {
  offer: Offer;
};

export type ApplicationData = {
  id: string;
  offerId: OfferId;
  offerName: string;
  employerId: string;
  employeeId: string;
  employeeDisplayName: string;
  status: ApplicationStatus;
};

export enum ApplicationStatus {
  PENDING = 'pending',
  ACCEPTED = 'accepted',
  REJECTED = 'rejected',
}
