import {body,oneOf} from "express-validator"; export const finavigatorVenueReqValidators = { create:() => [ body("name").exists(), body("loc").exists(), oneOf([ body("featured").exists(), body("loc.addr").exists(), body("loc.addr2").exists(), body("loc.city").exists(), body("loc.region").exists(), body("loc.pcode").exists(), body("loc.ctry").exists(), body("loc.tz").exists(), body("loc.info").exists(), body("loc.pts").exists(),])], update:() => [oneOf([ body("name").exists(), body("featured").exists(), body("loc").exists(), body("loc.addr").exists(), body("loc.addr2").exists(), body("loc.city").exists(), body("loc.region").exists(), body("loc.pcode").exists(), body("loc.ctry").exists(), body("loc.tz").exists(), body("loc.info").exists(), body("loc.pts").exists(),])], updateMany:() => [ body("ids").exists(), body("updates").exists(), oneOf([ body("updates.name").exists(), body("updates.featured").exists(), body("updates.loc").exists(), body("updates.loc.addr").exists(), body("updates.loc.addr2").exists(), body("updates.loc.city").exists(), body("updates.loc.region").exists(), body("updates.loc.pcode").exists(), body("updates.loc.ctry").exists(), body("updates.loc.tz").exists(), body("updates.loc.info").exists(), body("updates.loc.pts").exists(),])], removeMany:() => [body("ids").exists()], };