All files / src/api/suppliers/hooks useSuppliersData.ts

100% Statements 31/31
100% Branches 0/0
100% Functions 0/0
100% Lines 31/31

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 321x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 * @file useSuppliersData.ts
 * @module api/suppliers/hooks
 *
 * @summary
 * Coordinator barrel export for supplier hooks.
 * Re-exports specialized React Query hooks for supplier operations.
 *
 * @enterprise
 * - Enables focused single-responsibility hooks
 * - Preserves existing import paths: `import { useSuppliersPageQuery } from '@/api/suppliers/hooks'`
 * - Zero breaking changes for consuming components
 * - Organized by use case: page query, search, detail by id
 *
 * @usage
 * ```typescript
 * import {
 *   useSuppliersPageQuery,
 *   useSupplierSearchQuery,
 *   useSupplierByIdQuery
 * } from '@/api/suppliers/hooks';
 * ```
 */
 
// Legacy name exports for backward compatibility
export { useSupplierPageQuery as useSuppliersPageQuery } from './useSupplierPageQuery';
export { useSupplierSearchQuery } from './useSupplierSearchQuery';
export { useSupplierByIdQuery } from './useSupplierByIdQuery';
 
// Standard names
export { useSupplierPageQuery } from './useSupplierPageQuery';