import { ValueObject } from "@repo/rdx-ddd"; import { Result } from "@repo/rdx-utils"; export class SiteAddress extends ValueObject { static create(value: string): Result { const normalized = value.trim(); return normalized && normalized.length <= 10000 ? Result.ok(new SiteAddress(normalized)) : Result.fail(new Error("Dirección inválida.")); } }