import { MakeSchema, ValidationCustomBuilder } from '~/domain'; import { DocumentValidatorAdapter, EmailValidatorAdapter, NameValidatorAdapter, PhoneValidatorAdapter, PriceValidatorAdapter, UuidValidatorAdapter, } from '../../custom-cases-adapters'; export class CustomCasesAdapter { constructor(private readonly makeSchema: MakeSchema.All) {} getCustoms = (): ValidationCustomBuilder => { return { email: new EmailValidatorAdapter(this.makeSchema).build, phone: new PhoneValidatorAdapter(this.makeSchema).build, name: new NameValidatorAdapter(this.makeSchema).build, price: new PriceValidatorAdapter(this.makeSchema).build, uuid: new UuidValidatorAdapter(this.makeSchema).build, document: new DocumentValidatorAdapter(this.makeSchema).build, }; }; }