From 5a5717699b8b2d60b7d92c2087ed2cc22667e1cc Mon Sep 17 00:00:00 2001 From: ivar Date: Sat, 27 Dec 2025 11:25:47 +0100 Subject: Almost there --- app/src/lib/shared.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/src/lib/shared.ts (limited to 'app/src/lib/shared.ts') diff --git a/app/src/lib/shared.ts b/app/src/lib/shared.ts new file mode 100644 index 0000000..a7cf207 --- /dev/null +++ b/app/src/lib/shared.ts @@ -0,0 +1,13 @@ +import * as v from 'valibot' + +export type ImportForm = v.InferOutput +export const ImportForm = v.object({ + budgetId: v.string(), + mappings: v.array( + v.object({ + sb1Id: v.string(), + actualId: v.string() + }) + ), + dryRun: v.boolean() +}) -- cgit v1.3