feat(budget): gelir planı ve günlük plan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -27,3 +27,20 @@ export const budgetLimitsSchema = z.object({
|
||||
),
|
||||
});
|
||||
export type BudgetLimitsForm = z.output<typeof budgetLimitsSchema>;
|
||||
|
||||
/** Gelir planı: elle eklenen beklenen gelirler (liste tümüyle değiştirilir). */
|
||||
export const incomeItemsSchema = z.object({
|
||||
month: budgetMonthSchema,
|
||||
items: z
|
||||
.array(
|
||||
z.object({
|
||||
name: z.string().trim().min(1, tr.common.required).max(80, tr.validation.nameMax),
|
||||
amount: nonNegativeMoneySchema.refine(
|
||||
(n) => n > 0,
|
||||
tr.transactions.validation.amountPositive,
|
||||
),
|
||||
}),
|
||||
)
|
||||
.max(30),
|
||||
});
|
||||
export type IncomeItemsForm = z.output<typeof incomeItemsSchema>;
|
||||
|
||||
Reference in New Issue
Block a user