sunrise-cms/helpers/functions.cache.d.ts

24 lines
2.2 KiB
TypeScript

import type { LotOccupantType, LotStatus, LotType, OccupancyType, OccupancyTypeField, WorkOrderMilestoneType, WorkOrderType } from '../types/recordTypes.js';
export declare function getLotOccupantTypes(): Promise<LotOccupantType[]>;
export declare function getLotOccupantTypeById(lotOccupantTypeId: number): Promise<LotOccupantType | undefined>;
export declare function getLotOccupantTypeByLotOccupantType(lotOccupantType: string): Promise<LotOccupantType | undefined>;
export declare function getLotStatuses(): Promise<LotStatus[]>;
export declare function getLotStatusById(lotStatusId: number): Promise<LotStatus | undefined>;
export declare function getLotStatusByLotStatus(lotStatus: string): Promise<LotStatus | undefined>;
export declare function getLotTypes(): Promise<LotType[]>;
export declare function getLotTypeById(lotTypeId: number): Promise<LotType | undefined>;
export declare function getLotTypesByLotType(lotType: string): Promise<LotType | undefined>;
export declare function getOccupancyTypes(): Promise<OccupancyType[]>;
export declare function getAllOccupancyTypeFields(): Promise<OccupancyTypeField[]>;
export declare function getOccupancyTypeById(occupancyTypeId: number): Promise<OccupancyType | undefined>;
export declare function getOccupancyTypeByOccupancyType(occupancyTypeString: string): Promise<OccupancyType | undefined>;
export declare function getOccupancyTypePrintsById(occupancyTypeId: number): Promise<string[]>;
export declare function getWorkOrderTypes(): Promise<WorkOrderType[]>;
export declare function getWorkOrderTypeById(workOrderTypeId: number): Promise<WorkOrderType | undefined>;
export declare function getWorkOrderMilestoneTypes(): Promise<WorkOrderMilestoneType[]>;
export declare function getWorkOrderMilestoneTypeById(workOrderMilestoneTypeId: number): Promise<WorkOrderMilestoneType | undefined>;
export declare function getWorkOrderMilestoneTypeByWorkOrderMilestoneType(workOrderMilestoneTypeString: string): Promise<WorkOrderMilestoneType | undefined>;
export declare function preloadCaches(): Promise<void>;
export declare function clearCaches(): void;
export declare function clearCacheByTableName(tableName: string, relayMessage?: boolean): void;