forked from git.gladyson/openmonetis
Remove createActionHandler, validateHashToken, decimalSchema, optionalPeriodSchema, dateStringSchema, amountSchema, FeedbackDialog standalone, CalendarEventType, parseDateKey, entre outros. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
63 lines
1.1 KiB
TypeScript
63 lines
1.1 KiB
TypeScript
import type {
|
|
LancamentoItem,
|
|
SelectOption,
|
|
} from "@/components/lancamentos/types";
|
|
|
|
export type CalendarEvent =
|
|
| {
|
|
id: string;
|
|
type: "lancamento";
|
|
date: string;
|
|
lancamento: LancamentoItem;
|
|
}
|
|
| {
|
|
id: string;
|
|
type: "boleto";
|
|
date: string;
|
|
lancamento: LancamentoItem;
|
|
}
|
|
| {
|
|
id: string;
|
|
type: "cartao";
|
|
date: string;
|
|
card: {
|
|
id: string;
|
|
name: string;
|
|
dueDay: string;
|
|
closingDay: string;
|
|
brand: string | null;
|
|
status: string;
|
|
logo: string | null;
|
|
totalDue: number | null;
|
|
};
|
|
};
|
|
|
|
export type CalendarPeriod = {
|
|
period: string;
|
|
monthName: string;
|
|
year: number;
|
|
};
|
|
|
|
export type CalendarDay = {
|
|
date: string;
|
|
label: string;
|
|
isCurrentMonth: boolean;
|
|
isToday: boolean;
|
|
events: CalendarEvent[];
|
|
};
|
|
|
|
export type CalendarFormOptions = {
|
|
pagadorOptions: SelectOption[];
|
|
splitPagadorOptions: SelectOption[];
|
|
defaultPagadorId: string | null;
|
|
contaOptions: SelectOption[];
|
|
cartaoOptions: SelectOption[];
|
|
categoriaOptions: SelectOption[];
|
|
estabelecimentos: string[];
|
|
};
|
|
|
|
export type CalendarData = {
|
|
events: CalendarEvent[];
|
|
formOptions: CalendarFormOptions;
|
|
};
|