sunrise-cms/helpers/lotOccupancyDB/getLots.d.ts

21 lines
661 B
TypeScript

import sqlite from "better-sqlite3";
import type * as recordTypes from "../../types/recordTypes";
interface GetLotsFilters {
lotNameSearchType?: "" | "startsWith" | "endsWith";
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 function getLots(filters: GetLotsFilters, options: GetLotsOptions, connectedDatabase?: sqlite.Database): {
count: number;
lots: recordTypes.Lot[];
};
export default getLots;