import {body,oneOf} from "express-validator"; export const finavigatorCommissionReqValidators = { create:() => [ body("payer").exists(), body("payee").exists(), body("amt").exists(), body("reason").exists(),], update:() => [oneOf([ body("amt").exists(), body("reason").exists(), body("refId").exists(), body("note").exists(), body("status").exists(),])], updateMany:() => [ body("ids").exists(), body("updates").exists(), oneOf([ body("updates.amt").exists(), body("updates.reason").exists(), body("updates.refId").exists(), body("updates.note").exists(), body("updates.status").exists(),])], removeMany:() => [body("ids").exists()], };