// PURPOSE: // Get total count of notification records // // RULES: // 1. Uses COL_NOTIFICATIONS collection // 2. Returns Promise with total count // 3. Uses getList API // 4. Errors handled by caller // import { pb } from '@/lib/pb'; import { COL_CUSTOMERS } from '@/constants'; export async function getAllCustomersCount(): Promise { const result = await pb.collection(COL_CUSTOMERS).getList(1, 1); return result.totalItems; }