UNPKG

@cityssm/worktech-api

Version:

Integrations with the WorkTech (Pearl) work order management system.

15 lines (14 loc) 592 B
import type { mssql } from '@cityssm/mssql-multi-pool'; import type { EquipmentItem } from './types.js'; /** * Retrieves a piece of equipment. * @param mssqlConfig - SQL Server configuration. * @param equipmentId - The equipment id. * @param bypassCache - Whether to bypass the cache * @returns - The equipment record, if available. */ export declare function getEquipmentByEquipmentId(mssqlConfig: mssql.config, equipmentId: string, bypassCache?: boolean): Promise<EquipmentItem | undefined>; /** * Clears the equipment cache. */ export declare function clearEquipmentCache(): void;