49 lines
823 B
TypeScript
Raw Normal View History

2024-10-27 21:27:41 +00:00
/* Copyright (C) 2024 Manuel Bustillo*/
import { AttendanceSummary } from "./group";
import { Guest } from "./guest";
2024-08-11 12:03:11 +02:00
export interface Entity {
id?: string;
}
export type TableArrangement = {
id: string;
number: number;
name: string;
guests?: Guest[];
discomfort?: number
}
2024-12-01 17:29:57 +01:00
export type User = {
2024-08-11 12:03:11 +02:00
id: string;
email: string;
}
export type Captcha = {
id: string;
answer: string;
2024-12-07 13:32:08 +01:00
}
export type StructuredErrors = {
[key: string]: string[] | string;
};
export type GlobalSummary = {
expenses: ExpenseSummary;
guests: AttendanceSummary
}
export type ExpenseSummary = {
projected: ExpensePossibleSummary;
confirmed: ExpensePossibleSummary;
status: StatusSummary;
}
export type ExpensePossibleSummary = {
total: number;
guests: number;
}
export type StatusSummary = {
paid: number;
}