All files / lib/validations/validate index.js

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                  1x 1x 1x                      
import {
  anyPass,
} from 'ramda'
 
import { cnpj, cpf } from './cnpjAndCpf'
import email from './email'
import card from './card'
import numberSize from './numberSize'
 
const ddd = numberSize(2)
const phone = anyPass([numberSize(8), numberSize(9)])
const zipcode = numberSize(8)
 
export default {
  card,
  cnpj,
  cpf,
  ddd,
  email,
  phone,
  zipcode,
}