import {body,oneOf} from "express-validator"; export const finavigatorAppointmentReqValidators = { create:() => [ body("agent").exists(), body("client").exists(), oneOf([ body("venue").exists(), body("platform").exists(),])], update:() => [oneOf([ body("agent").exists(), body("client").exists(), body("venue").exists(), body("platform").exists(), body("lead").exists(), body("note").exists(),])], updateMany:() => [ body("ids").exists(), body("updates").exists(), oneOf([ body("updates.agent").exists(), body("updates.client").exists(), body("updates.venue").exists(), body("updates.platform").exists(), body("updates.lead").exists(), body("updates.note").exists(),])], removeMany:() => [body("ids").exists()], };