Manuel Bustillo 7dbfbb76b7
All checks were successful
Playwright Tests / test (pull_request) Has been skipped
Check usage of free licenses / build-static-assets (pull_request) Successful in 18s
Add copyright notice / copyright_notice (pull_request) Successful in 20s
Load dashboard information from the backend
2024-12-11 08:38:50 +01:00

60 lines
1010 B
TypeScript

/* Copyright (C) 2024 Manuel Bustillo*/
import { AttendanceSummary } from "./group";
import { Guest } from "./guest";
export interface Entity {
id?: string;
}
export type TableArrangement = {
id: string;
number: number;
name: string;
guests?: Guest[];
discomfort?: number
}
export type guestsTable = {
id: string;
customer_id: string;
name: string;
email: string;
image_url: string;
date: string;
amount: number;
status: 'pending' | 'paid';
};
export type User = {
id: string;
email: string;
}
export type Captcha = {
id: string;
answer: string;
}
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;
}