diff options
Diffstat (limited to 'app/src/lib/shared.ts')
| -rw-r--r-- | app/src/lib/shared.ts | 13 |
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() +}) |
