aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/lib/shared.ts
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-12-27 11:25:47 +0100
committerivar <i@oiee.no>2025-12-27 11:25:47 +0100
commit5a5717699b8b2d60b7d92c2087ed2cc22667e1cc (patch)
treeb3d2a5029af79a91a71e8464b5d5981187fe23cb /app/src/lib/shared.ts
parentabf37599c877a8cc83e5a24c775c3999a9879abf (diff)
downloadsparebank1-actualbudget-5a5717699b8b2d60b7d92c2087ed2cc22667e1cc.tar.xz
sparebank1-actualbudget-5a5717699b8b2d60b7d92c2087ed2cc22667e1cc.zip
Almost there
Diffstat (limited to 'app/src/lib/shared.ts')
-rw-r--r--app/src/lib/shared.ts13
1 files changed, 13 insertions, 0 deletions
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<typeof ImportForm>
+export const ImportForm = v.object({
+ budgetId: v.string(),
+ mappings: v.array(
+ v.object({
+ sb1Id: v.string(),
+ actualId: v.string()
+ })
+ ),
+ dryRun: v.boolean()
+})