refactor: traduz contratos compartilhados do schema

This commit is contained in:
Felipe Coutinho
2026-03-14 12:50:43 +00:00
parent fa9bf17663
commit ef918a3667
9 changed files with 248 additions and 247 deletions

View File

@@ -24,28 +24,28 @@ export function handleActionError(error: unknown): ActionResult {
* Configuration for revalidation after mutations
*/
export const revalidateConfig = {
cartoes: ["/cards", "/accounts", "/transactions"],
contas: ["/accounts", "/transactions"],
categorias: ["/categories"],
estabelecimentos: ["/reports/establishments", "/transactions"],
orcamentos: ["/budgets"],
pagadores: ["/payers"],
anotacoes: ["/notes", "/notes/arquivadas", "/dashboard"],
lancamentos: ["/transactions", "/accounts"],
cards: ["/cards", "/accounts", "/transactions"],
accounts: ["/accounts", "/transactions"],
categories: ["/categories"],
establishments: ["/reports/establishments", "/transactions"],
budgets: ["/budgets"],
payers: ["/payers"],
notes: ["/notes", "/notes/archived", "/dashboard"],
transactions: ["/transactions", "/accounts"],
inbox: ["/inbox", "/transactions", "/dashboard"],
recorrentes: ["/transactions", "/dashboard"],
recurring: ["/transactions", "/dashboard"],
} as const;
/** Entities whose mutations should invalidate the dashboard cache */
const DASHBOARD_ENTITIES: ReadonlySet<string> = new Set([
"lancamentos",
"contas",
"cartoes",
"orcamentos",
"pagadores",
"anotacoes",
"transactions",
"accounts",
"cards",
"budgets",
"payers",
"notes",
"inbox",
"recorrentes",
"recurring",
]);
/**