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 | 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 utils.ts
* @module api/inventory/utils
*
* @summary
* Coordinator barrel export for inventory utilities.
* Re-exports type guards, field pickers, error handling, and response extraction from focused modules.
*
* @enterprise
* - Enables single-responsibility utility modules organized by concern
* - Preserves existing import paths: `import { pickString, errorMessage } from '@/api/inventory/utils'`
* - Zero breaking changes for consuming modules across inventory API layer
* - Clear organization: typeGuards, fieldPickers, errorHandling, responseExtraction
*/
// Type narrowing helpers
export { isRecord } from './utils/typeGuards';
// Field extraction with safe coercion
export { pickString, pickNumber, pickNumberFromList, pickStringFromList } from './utils/fieldPickers';
// Error extraction and user-friendly messages
export { errorMessage } from './utils/errorHandling';
// Response envelope parsing
export { resDataOrEmpty, extractArray } from './utils/responseExtraction';
|