mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-03-10 21:11:46 +00:00
refactor: migrate from ESLint to Biome and extract SQL queries to data.ts
- Replace ESLint with Biome for linting and formatting - Configure Biome with tabs, double quotes, and organized imports - Move all SQL/Drizzle queries from page.tsx files to data.ts files - Create new data.ts files for: ajustes, dashboard, relatorios/categorias - Update existing data.ts files: extrato, fatura (add lancamentos queries) - Remove all drizzle-orm imports from page.tsx files - Update README.md with new tooling info Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,61 +1,61 @@
|
||||
export type LancamentoItem = {
|
||||
id: string;
|
||||
userId: string;
|
||||
name: string;
|
||||
purchaseDate: string;
|
||||
period: string;
|
||||
transactionType: string;
|
||||
amount: number;
|
||||
condition: string;
|
||||
paymentMethod: string;
|
||||
pagadorId: string | null;
|
||||
pagadorName: string | null;
|
||||
pagadorAvatar: string | null;
|
||||
pagadorRole: string | null;
|
||||
contaId: string | null;
|
||||
contaName: string | null;
|
||||
contaLogo: string | null;
|
||||
cartaoId: string | null;
|
||||
cartaoName: string | null;
|
||||
cartaoLogo: string | null;
|
||||
categoriaId: string | null;
|
||||
categoriaName: string | null;
|
||||
categoriaType: string | null;
|
||||
categoriaIcon: string | null;
|
||||
installmentCount: number | null;
|
||||
recurrenceCount: number | null;
|
||||
currentInstallment: number | null;
|
||||
dueDate: string | null;
|
||||
boletoPaymentDate: string | null;
|
||||
note: string | null;
|
||||
isSettled: boolean | null;
|
||||
isDivided: boolean;
|
||||
isAnticipated: boolean;
|
||||
anticipationId: string | null;
|
||||
seriesId: string | null;
|
||||
readonly?: boolean;
|
||||
id: string;
|
||||
userId: string;
|
||||
name: string;
|
||||
purchaseDate: string;
|
||||
period: string;
|
||||
transactionType: string;
|
||||
amount: number;
|
||||
condition: string;
|
||||
paymentMethod: string;
|
||||
pagadorId: string | null;
|
||||
pagadorName: string | null;
|
||||
pagadorAvatar: string | null;
|
||||
pagadorRole: string | null;
|
||||
contaId: string | null;
|
||||
contaName: string | null;
|
||||
contaLogo: string | null;
|
||||
cartaoId: string | null;
|
||||
cartaoName: string | null;
|
||||
cartaoLogo: string | null;
|
||||
categoriaId: string | null;
|
||||
categoriaName: string | null;
|
||||
categoriaType: string | null;
|
||||
categoriaIcon: string | null;
|
||||
installmentCount: number | null;
|
||||
recurrenceCount: number | null;
|
||||
currentInstallment: number | null;
|
||||
dueDate: string | null;
|
||||
boletoPaymentDate: string | null;
|
||||
note: string | null;
|
||||
isSettled: boolean | null;
|
||||
isDivided: boolean;
|
||||
isAnticipated: boolean;
|
||||
anticipationId: string | null;
|
||||
seriesId: string | null;
|
||||
readonly?: boolean;
|
||||
};
|
||||
|
||||
export type SelectOption = {
|
||||
value: string;
|
||||
label: string;
|
||||
role?: string | null;
|
||||
group?: string | null;
|
||||
slug?: string | null;
|
||||
avatarUrl?: string | null;
|
||||
logo?: string | null;
|
||||
icon?: string | null;
|
||||
accountType?: string | null;
|
||||
value: string;
|
||||
label: string;
|
||||
role?: string | null;
|
||||
group?: string | null;
|
||||
slug?: string | null;
|
||||
avatarUrl?: string | null;
|
||||
logo?: string | null;
|
||||
icon?: string | null;
|
||||
accountType?: string | null;
|
||||
};
|
||||
|
||||
export type LancamentoFilterOption = {
|
||||
slug: string;
|
||||
label: string;
|
||||
icon?: string | null;
|
||||
avatarUrl?: string | null;
|
||||
slug: string;
|
||||
label: string;
|
||||
icon?: string | null;
|
||||
avatarUrl?: string | null;
|
||||
};
|
||||
|
||||
export type ContaCartaoFilterOption = LancamentoFilterOption & {
|
||||
kind: "conta" | "cartao";
|
||||
logo?: string | null;
|
||||
kind: "conta" | "cartao";
|
||||
logo?: string | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user