export const BankAccountFormSchema = z.object({
name: z.string().min(1, "account name is required"),
bankName: z.string().min(1, "bank name is required"),
cardProvider: z.nativeEnum(CardProvider).nullable(),
cardType: z.nativeEnum(CardType).nullable(),
cardholderName: z.string().min(1, "cardholder name is required"),
style: z.nativeEnum(BankAccountStyle).default(BankAccountStyle.DEFAULT),
theme: z
.string()
.regex(/^#[0-9A-Fa-f]{6}$/, "must be a valid hex color")
.default("#333333"),
textColor: z
.string()
.regex(/^#[0-9A-Fa-f]{6}$/, "must be a valid hex color")
.default("#FFFFFF"),
});
export const BankAccountFormSchema = z.object({
name: z.string().min(1, "account name is required"),
bankName: z.string().min(1, "bank name is required"),
cardProvider: z.nativeEnum(CardProvider).nullable(),
cardType: z.nativeEnum(CardType).nullable(),
cardholderName: z.string().min(1, "cardholder name is required"),
style: z.nativeEnum(BankAccountStyle).default(BankAccountStyle.DEFAULT),
theme: z
.string()
.regex(/^#[0-9A-Fa-f]{6}$/, "must be a valid hex color")
.default("#333333"),
textColor: z
.string()
.regex(/^#[0-9A-Fa-f]{6}$/, "must be a valid hex color")
.default("#FFFFFF"),
});