22 lines
814 B
TypeScript
22 lines
814 B
TypeScript
import type { PoolConnection } from 'better-sqlite-pool';
|
|
import type { BurialSite } from '../types/recordTypes.js';
|
|
export interface GetBurialSitesFilters {
|
|
burialSiteNameSearchType?: '' | 'startsWith' | 'endsWith';
|
|
burialSiteName?: string;
|
|
cemeteryId?: number | string;
|
|
burialSiteTypeId?: number | string;
|
|
burialSiteStatusId?: number | string;
|
|
contractStatus?: '' | 'occupied' | 'unoccupied';
|
|
workOrderId?: number | string;
|
|
}
|
|
export interface GetBurialSitesOptions {
|
|
/** -1 for no limit */
|
|
limit: number;
|
|
offset: string | number;
|
|
includeContractCount?: boolean;
|
|
}
|
|
export default function getBurialSites(filters: GetBurialSitesFilters, options: GetBurialSitesOptions, connectedDatabase?: PoolConnection): Promise<{
|
|
count: number;
|
|
burialSites: BurialSite[];
|
|
}>;
|