update Implement standardized documentation for all database modules, including purpose, rules, and requirements for each CRUD operation; refactor existing comments to follow new documentation standard ```
17 lines
400 B
TypeScript
17 lines
400 B
TypeScript
// PURPOSE:
|
|
// Get all customer records
|
|
// REQ0006
|
|
//
|
|
// RULES:
|
|
// error handled by caller
|
|
// contain definition to collection only
|
|
//
|
|
|
|
import { pb } from '@/lib/pb';
|
|
import { COL_CUSTOMERS } from '@/constants';
|
|
import type { RecordModel } from 'pocketbase';
|
|
|
|
export async function getAllCustomers(options = {}): Promise<RecordModel[]> {
|
|
return pb.collection(COL_CUSTOMERS).getFullList(options);
|
|
}
|