export const CandidateStatus = {
/**as we put candidate information in db */
sourced: 'sourced',
/** if we initiated the court search */
court_searching: 'court_searching',
/** court_search_complete */
court_search_complete: 'court_search_complete',
/** request_for_documents:
* This status is also related with scheduled status
* this is equivalent to pre-adverse initiated.
*/
request_for_documents: 'request_for_documents',
/** In_Review – after user submits requested documents, from this it can again go to request for document */
in_review: 'in_review',
/** Engaged – recruiter thinks it is better to engage with candidate, regardless of court search result */
engaged: 'engaged',
/** Rejected – recruiter rejects candidate on account of violations */
rejected: 'rejected',
/** Canceled – recruiter cancels candidate flow */
canceled: 'canceled',
} as const;
export type CandidateStatusType =
(typeof CandidateStatus)[keyof typeof CandidateStatus];
it is not much useful, instead use like this
_Originally posted by @akshayvijayjain in https://github.com/sidharthjain-zemoso/NodeJS-Assignments/pull/3#discussion_r1596733353_