import { IThemis } from '~/domain/themis'; import { makeMakeSchemas } from '~/main/factories/helpers/make-schema'; import { makeValidationBuilder } from '~/main/factories/helpers/make-validation-builder'; import { makeThemisMethods } from '~/main/factories/make-themis-methods'; import { IThemisAdapter } from '~/presentation/use-cases'; export const makeThemis = (): IThemis => { const makeSchemas = makeMakeSchemas(); const builder = makeValidationBuilder(makeSchemas); const methods = makeThemisMethods(makeSchemas.object); return new IThemisAdapter(builder, methods); };