18 lines
683 B
TypeScript
18 lines
683 B
TypeScript
type AvailabilityStatus = 'AVAILABLE' | 'RESERVED' | 'MAINTENANCE' | 'UNAVAILABLE';
|
|
type DateRange = {
|
|
startDate: Date;
|
|
endDate: Date;
|
|
};
|
|
export interface VehicleAvailabilitySummary {
|
|
available: boolean;
|
|
status: AvailabilityStatus;
|
|
nextAvailableAt: Date | null;
|
|
blockingReason: 'RESERVATION' | 'MAINTENANCE' | 'BLOCK' | 'STATUS' | null;
|
|
}
|
|
export declare function getVehicleAvailabilitySummary(vehicleId: string, { range, includeDraftReservations, companyId, }?: {
|
|
range?: DateRange;
|
|
includeDraftReservations?: boolean;
|
|
companyId?: string;
|
|
}): Promise<VehicleAvailabilitySummary>;
|
|
export {};
|
|
//# sourceMappingURL=vehicleAvailabilityService.d.ts.map
|