diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 3cd72f7b..43033664 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -582,7 +582,7 @@ paths: required: false schema: type: string - enum: ['open', 'selected', 'shortlist', 'rejected', 'cancelled'] + enum: ['open', 'selected', 'shortlist', 'rejected', 'cancelled', 'interview'] description: The job candidate status. - in: query name: externalId @@ -1789,7 +1789,7 @@ components: description: "The user id." status: type: string - enum: ['open', 'selected', 'shortlist', 'rejected', 'cancelled'] + enum: ['open', 'selected', 'shortlist', 'rejected', 'cancelled', 'interview'] description: "The job candidate status." externalId: type: string @@ -1841,7 +1841,7 @@ components: properties: status: type: string - enum: ['open', 'selected', 'shortlist', 'rejected', 'cancelled'] + enum: ['open', 'selected', 'shortlist', 'rejected', 'cancelled', 'interview'] externalId: type: string example: "1212" @@ -2309,7 +2309,7 @@ components: description: 'The link for the resume that can be downloaded' status: type: string - enum: ['open', 'selected', 'shortlist', 'rejected', 'cancelled'] + enum: ['open', 'selected', 'shortlist', 'rejected', 'cancelled', 'interview'] description: "The job candidate status." skills: type: array diff --git a/src/bootstrap.js b/src/bootstrap.js index eaaf88ec..c0ac6b72 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -8,7 +8,7 @@ Joi.perPage = () => Joi.number().integer().min(1).default(20) Joi.rateType = () => Joi.string().valid('hourly', 'daily', 'weekly', 'monthly') Joi.jobStatus = () => Joi.string().valid('sourcing', 'in-review', 'assigned', 'closed', 'cancelled') Joi.workload = () => Joi.string().valid('full-time', 'fractional') -Joi.jobCandidateStatus = () => Joi.string().valid('open', 'selected', 'shortlist', 'rejected', 'cancelled') +Joi.jobCandidateStatus = () => Joi.string().valid('open', 'selected', 'shortlist', 'rejected', 'cancelled', 'interview') Joi.title = () => Joi.string().max(128) function buildServices (dir) {