refactor(structure): move legacy import and remove lib leftovers

This commit is contained in:
2026-06-04 22:13:26 +02:00
parent da9ae0582b
commit a7f7ace527
17 changed files with 27 additions and 220 deletions
+12
View File
@@ -0,0 +1,12 @@
import { z } from "zod"
const ACCEPTED_MIME_TYPES = ["text/csv", "text/comma-separated-values"]
export const importSchema = z.object({
file: z.file().refine((file) => ACCEPTED_MIME_TYPES.includes(file.type), {
error: "File must be a CSV",
}),
categoryId: z.string().optional(),
})
export type ImportFormType = z.infer<typeof importSchema>