M12: complete daily operations cycle

This commit is contained in:
NuklearRabbit
2026-08-10 03:15:46 +02:00
parent 4a3c3bd0a9
commit 15bdbe40ac
32 changed files with 802 additions and 18 deletions
+2
View File
@@ -51,4 +51,6 @@ export const api = {
get: <T>(path: string) => request<T>(path),
post: <T>(path: string, body?: unknown, headers?: Record<string, string>) =>
request<T>(path, { method: "POST", body: body ? JSON.stringify(body) : undefined, headers }),
patch: <T>(path: string, body: unknown) =>
request<T>(path, { method: "PATCH", body: JSON.stringify(body) }),
};
+18
View File
@@ -66,6 +66,24 @@ export interface AvailableVehicle {
operational_status: string;
}
export interface CheckoutBookingResult {
booking_ref: string;
vehicle_ref: string;
inspection_ref: string;
booking_status: string;
resulting_vehicle_status: string;
activated: boolean;
attention_reasons: string[];
}
export interface UserRecord {
public_ref: string;
email: string | null;
display_name: string;
role: Role;
active: boolean;
}
export interface Inspection {
public_ref: string;
booking_ref: string;