types/invoices/Product
@arolariu/website / types/invoices/Product
types/invoices/Product
Fileoverview
Product type definitions for invoice line items.
Remarks
This module defines product (line item) types representing individual items purchased on an invoice. Products are the most granular level of transaction data, enabling detailed spending analytics.
Data Extraction: Product data is extracted from invoice scans via:
- OCR text recognition
- AI entity extraction (names, prices, quantities)
- Barcode/product code lookups
- Manual user corrections
Product Enrichment: Raw OCR names are enriched with:
- Generic names (e.g., "MLK 2% 1L" → "Milk 2% 1 Liter")
- Category classification
- Allergen detection
- Nutritional information (future)
See
- Invoice.items for product attachment to invoices
- Allergen for allergen information
Interfaces
Type Aliases
- ProductMetadata
- ProductCategory
- CreateProductDtoPayload
- UpdateProductDtoPayload
- DeleteProductDtoPayload
Variables
// was this page useful?