import {body,oneOf} from "express-validator"; export const firstlineDistressReportReqValidators = { create:() => [ body("type").exists(), body("author").exists(), body("body").exists()], update:() => [oneOf([body("body").exists(),body("status").exists()])], updateMany:() => [ body("ids").exists(), body("updates").exists(), oneOf([ body("updates.body").exists(), body("updates.status").exists(),])], removeMany:() => [body("ids").exists()], createSms:() => [ body("type").exists(), body("author").exists(), body("body").exists()], };