20 lines
606 B
TypeScript
20 lines
606 B
TypeScript
import sqlite from "better-sqlite3";
|
|
import type * as recordTypes from "../../types/recordTypes";
|
|
interface GetLotsFilters {
|
|
lotName?: string;
|
|
mapId?: number | string;
|
|
lotTypeId?: number | string;
|
|
lotStatusId?: number | string;
|
|
occupancyStatus?: "" | "occupied" | "unoccupied";
|
|
workOrderId?: number | string;
|
|
}
|
|
interface GetLotsOptions {
|
|
limit: -1 | number;
|
|
offset: number;
|
|
}
|
|
export declare const getLots: (filters: GetLotsFilters, options: GetLotsOptions, connectedDatabase?: sqlite.Database) => {
|
|
count: number;
|
|
lots: recordTypes.Lot[];
|
|
};
|
|
export default getLots;
|