first build commit

This commit is contained in:
2026-04-19 00:44:43 -04:00
parent bc271b7ce1
commit 55debd082b
82 changed files with 6217 additions and 97 deletions

View File

@@ -0,0 +1,21 @@
import { z } from 'zod'
export const transactionQuerySchema = z.object({
accountId: z.string().optional(),
dateFrom: z.string().optional(),
dateTo: z.string().optional(),
type: z.enum(['DEBIT', 'CREDIT']).optional(),
search: z.string().optional(),
budgetId: z.string().optional(),
page: z.coerce.number().min(1).default(1),
limit: z.coerce.number().min(1).max(100).default(50),
})
export const updateTransactionSchema = z.object({
notes: z.string().nullable().optional(),
category: z.string().max(100).nullable().optional(),
budgetId: z.string().nullable().optional(),
})
export type TransactionQuery = z.infer<typeof transactionQuerySchema>
export type UpdateTransactionInput = z.infer<typeof updateTransactionSchema>