Initial PHP rebuild of the app
This commit is contained in:
690 files changed
+33944
-12046
No files matched your search
@@ -1,35 +0,0 @@
|
||||
/**
|
||||
* Small, UI-facing display types. Deliberately NOT imported from
|
||||
* `@/generated/prisma` — components in `components/ui` should never depend
|
||||
* on the ORM layer directly (see docs/implementation-plan.md §11, "Server
|
||||
* and client boundaries"). Feature code maps Prisma results onto these
|
||||
* shapes; if the two drift, that mapping step is exactly where it should
|
||||
* be caught.
|
||||
*/
|
||||
|
||||
export type AppointmentStatus =
|
||||
| "pending_approval"
|
||||
| "confirmed"
|
||||
| "arrived"
|
||||
| "in_progress"
|
||||
| "completed"
|
||||
| "cancelled"
|
||||
| "no_show";
|
||||
|
||||
export interface StaffSummary {
|
||||
id: string;
|
||||
name: string;
|
||||
avatarUrl?: string;
|
||||
}
|
||||
|
||||
export interface ServiceSummary {
|
||||
id: string;
|
||||
name: string;
|
||||
/** Collapses in the UI when null/undefined/empty — see ServiceCard. */
|
||||
description?: string | null;
|
||||
imageUrl?: string | null;
|
||||
durationMinutes: number;
|
||||
/** Formatted for display, e.g. "£22.00" — currency formatting is a
|
||||
* presentation concern handled once, upstream of these components. */
|
||||
formattedPrice: string;
|
||||
}
|
||||
Vendored
-15
@@ -1,15 +0,0 @@
|
||||
import type { DefaultSession } from "next-auth";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
user: {
|
||||
id: string;
|
||||
} & DefaultSession["user"];
|
||||
}
|
||||
}
|
||||
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
id?: string;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user