27 lines
982 B
TypeScript
27 lines
982 B
TypeScript
import type { PoolConnection } from 'better-sqlite-pool';
|
|
import type * as recordTypes from '../../types/recordTypes';
|
|
interface GetLotOccupanciesFilters {
|
|
lotId?: number | string;
|
|
occupancyTime?: '' | 'past' | 'current' | 'future';
|
|
occupancyStartDateString?: string;
|
|
occupancyEffectiveDateString?: string;
|
|
occupantName?: string;
|
|
occupancyTypeId?: number | string;
|
|
mapId?: number | string;
|
|
lotNameSearchType?: '' | 'startsWith' | 'endsWith';
|
|
lotName?: string;
|
|
lotTypeId?: number | string;
|
|
workOrderId?: number | string;
|
|
notWorkOrderId?: number | string;
|
|
}
|
|
interface GetLotOccupanciesOptions {
|
|
limit: -1 | number;
|
|
offset: number;
|
|
includeOccupants: boolean;
|
|
}
|
|
export declare function getLotOccupancies(filters: GetLotOccupanciesFilters, options: GetLotOccupanciesOptions, connectedDatabase?: PoolConnection): Promise<{
|
|
count: number;
|
|
lotOccupancies: recordTypes.LotOccupancy[];
|
|
}>;
|
|
export default getLotOccupancies;
|