export enum CANDIDATE_STATUS_NAMES {
  ONBOARDED = 'ONBOARDED',
  TA_APPROVED = 'TA_APPROVED',
  TA_REJECTED = 'TA_REJECTED',
  COURSE_STARTED = 'COURSE_STARTED',
  COURSE_COMPLETED = 'COURSE_COMPLETED',
  METTL_SCHEDULED = 'METTL_SCHEDULED',
  METTL_APPROVED = 'METTL_APPROVED',
  METTL_REJECTED = 'METTL_REJECTED',
  METTL_STARTED = 'METTL_STARTED',
  METTL_REVIEW = 'METTL_REVIEW',
  METTL_COACH_ASSIGNED = 'METTL_COACH_ASSIGNED',
  METTL_COMPLETED = 'METTL_COMPLETED',
  COACH_ASSIGNED = 'COACH_ASSIGNED',
  MINI_PG_STARTED = 'MINI_PG_STARTED',
  MINI_PG_COMPLETED = 'MINI_PG_COMPLETED',
  MINI_PG_COACH_REJECTED = 'MINI_PG_COACH_REJECTED',
  MINI_PG_COACH_APPROVED = 'MINI_PG_COACH_APPROVED',
  MAIN_PG_COACH_ASSIGNED = 'MAIN_PG_COACH_ASSIGNED',
  MAIN_PG_STARTED = 'MAIN_PG_STARTED',
  MAIN_PG_COMPLETED = 'MAIN_PG_COMPLETED',
  MAIN_PG_COACH_REVIEWED = 'MAIN_PG_COACH_REVIEWED',
  MAIN_PG_MANAGER_APPROVED = 'MAIN_PG_MANAGER_APPROVED',
  MAIN_PG_MANAGER_REJECTED = 'MAIN_PG_MANAGER_REJECTED'
}

export enum CANDIDATE_STATUS {
  ONBOARDED = 0,
  TA_APPROVED = 1,
  TA_REJECTED = 2,
  COURSE_STARTED = 2.1,
  COURSE_COMPLETED = 2.2,
  METTL_SCHEDULED = 3,
  METTL_APPROVED = 4,
  METTL_STARTED = 4.5,
  METTL_REJECTED = 5,
  METTL_REVIEW = 6,
  METTL_COACH_ASSIGNED = 7,
  COACH_ASSIGNED = 8,
  METTL_COMPLETED = 8.5,
  MINI_PG_STARTED = 9,
  MINI_PG_COMPLETED = 10,
  MINI_PG_COACH_REJECTED = 11,
  MINI_PG_COACH_APPROVED = 12,
  MAIN_PG_COACH_ASSIGNED = 13,
  MAIN_PG_STARTED = 14,
  MAIN_PG_COMPLETED = 15,
  MAIN_PG_COACH_REVIEWED = 16,
  MAIN_PG_MANAGER_APPROVED = 17,
  MAIN_PG_MANAGER_REJECTED = 18



  // we should not have statuses for this
  // PG_COACH_ASSIGNED_NOTIFY_CANDIDATE = 7,
  // PG_COACH_ASSIGNED_NOTIFY_COACH = 8,
  // PG_MAIN_PG_COACH_ASSIGNED_NOTIFY_CANDIDATE = 18,
  // PG_MAIN_PG_COACH_ASSIGNED_NOTIFY_COACH = 19,
}

export const MAP_CANDIDATE_STATUS = {
  'ONBOARDED': 0,
  'TA_APPROVED': 1,
  'TA_REJECTED': 2,
  'COURSE_STARTED': 2.1,
  'COURSE_COMPLETED': 2.2,
  'METTL_SCHEDULED': 3,
  'METTL_APPROVED': 4,
  'METTL_STARTED': 4.5,
  'METTL_REJECTED': 5,
  'METTL_REVIEW': 6,
  'METTL_COACH_ASSIGNED': 7,
  'COACH_ASSIGNED': 8,
  'METTL_COMPLETED': 8.5,
  'MINI_PG_STARTED': 9,
  'MINI_PG_COMPLETED': 10,
  'MINI_PG_COACH_REJECTED': 11,
  'MINI_PG_COACH_APPROVED': 12,
  'MAIN_PG_COACH_ASSIGNED': 13,
  'MAIN_PG_STARTED': 14,
  'MAIN_PG_COMPLETED': 15,
  'MAIN_PG_COACH_REVIEWED': 16,
  'MAIN_PG_MANAGER_APPROVED': 17,
  'MAIN_PG_MANAGER_REJECTED': 18
};

export const CANDIDATE_STATUS_OBJECT = {
  ONBOARDED: { id: 0, name: CANDIDATE_STATUS_NAMES.ONBOARDED },
  TA_APPROVED: { id: 1, name: CANDIDATE_STATUS_NAMES.TA_APPROVED },
  TA_REJECTED: { id: 2, name: CANDIDATE_STATUS_NAMES.TA_REJECTED },
  COURSE_STARTED: { id: 2.1, name: CANDIDATE_STATUS_NAMES.COURSE_STARTED },
  COURSE_COMPLETED: { id: 2.2, name: CANDIDATE_STATUS_NAMES.COURSE_COMPLETED},
  METTL_SCHEDULED: { id: 3, name: CANDIDATE_STATUS_NAMES.METTL_SCHEDULED },
  METTL_APPROVED: { id: 4, name: CANDIDATE_STATUS_NAMES.METTL_APPROVED },
  METTL_REJECTED: { id: 5, name: CANDIDATE_STATUS_NAMES.METTL_SCHEDULED },
  METTL_REVIEW: { id: 6, name: CANDIDATE_STATUS_NAMES.METTL_REVIEW },
  METTL_COACH_ASSIGNED: { id: 7, name: CANDIDATE_STATUS_NAMES.METTL_COACH_ASSIGNED },
  COACH_ASSIGNED: { id: 8, name: CANDIDATE_STATUS_NAMES.COACH_ASSIGNED },
  MINI_PG_STARTED: { id: 9, name: CANDIDATE_STATUS_NAMES.MINI_PG_STARTED },
  MINI_PG_COMPLETED: { id: 10, name: CANDIDATE_STATUS_NAMES.MINI_PG_COMPLETED },
  MINI_PG_COACH_REJECTED: { id: 11, name: CANDIDATE_STATUS_NAMES.MINI_PG_COACH_REJECTED },
  MINI_PG_COACH_APPROVED: { id: 12, name: CANDIDATE_STATUS_NAMES.MINI_PG_COACH_APPROVED },
  MAIN_PG_COACH_ASSIGNED: { id: 13, name: CANDIDATE_STATUS_NAMES.MAIN_PG_COACH_ASSIGNED },
  MAIN_PG_STARTED: { id: 14, name: CANDIDATE_STATUS_NAMES.MAIN_PG_STARTED },
  MAIN_PG_COMPLETED: { id: 15, name: CANDIDATE_STATUS_NAMES.MAIN_PG_COMPLETED },
  MAIN_PG_COACH_REVIEWED: { id: 16, name: CANDIDATE_STATUS_NAMES.MAIN_PG_COACH_REVIEWED },
  MAIN_PG_MANAGER_APPROVED: { id: 17, name: CANDIDATE_STATUS_NAMES.MAIN_PG_MANAGER_APPROVED },
  MAIN_PG_MANAGER_REJECTED: { id: 18, name: CANDIDATE_STATUS_NAMES.MAIN_PG_MANAGER_REJECTED }
};
