M12: complete daily operations cycle
This commit is contained in:
@@ -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) }),
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user