[fabric/domain] move validation files to models directory and update imports

This commit is contained in:
Pablo Baleztena 2024-10-20 11:53:59 -03:00
parent 3b0533b0a9
commit 25870c8558
5 changed files with 3 additions and 3 deletions

View File

@ -6,4 +6,3 @@ export * from "./security/index.ts";
export * from "./services/index.ts"; export * from "./services/index.ts";
export * from "./use-case/index.ts"; export * from "./use-case/index.ts";
export * from "./utils/index.ts"; export * from "./utils/index.ts";
export * from "./validations/index.ts";

View File

@ -5,3 +5,4 @@ export * from "./model-schema.ts";
export * from "./model.ts"; export * from "./model.ts";
export * from "./state-store.ts"; export * from "./state-store.ts";
export * from "./store-query/index.ts"; export * from "./store-query/index.ts";
export * from "./validations/index.ts";

View File

@ -5,7 +5,7 @@ import {
type VariantFromTag, type VariantFromTag,
} from "@fabric/core"; } from "@fabric/core";
import { isUUID, parseAndSanitizeString } from "@fabric/validations"; import { isUUID, parseAndSanitizeString } from "@fabric/validations";
import type { FieldDefinition, FieldToType } from "../models/index.ts"; import type { FieldDefinition, FieldToType } from "../index.ts";
export type FieldParsers = { export type FieldParsers = {
[K in FieldDefinition["_tag"]]: FieldParser< [K in FieldDefinition["_tag"]]: FieldParser<

View File

@ -1,7 +1,7 @@
// deno-lint-ignore-file no-explicit-any // deno-lint-ignore-file no-explicit-any
import { isRecordEmpty, Result, TaggedError } from "@fabric/core"; import { isRecordEmpty, Result, TaggedError } from "@fabric/core";
import type { FieldDefinition, Model, ModelToType } from "../models/index.ts"; import type { FieldDefinition, Model, ModelToType } from "../index.ts";
import { fieldParsers, type FieldParsingError } from "./field-parsers.ts"; import { fieldParsers, type FieldParsingError } from "./field-parsers.ts";
export function parseFromModel< export function parseFromModel<