types/invoices
@arolariu/website / types/invoices
types/invoices
Fileoverview
Public API exports for the invoices bounded context.
Remarks
This barrel module exports all public types from the invoices domain, providing a clean API surface for consumers throughout the application.
Domain Structure:
Invoice (Aggregate Root)
├── InvoiceScan[] (Document artifacts)
├── PaymentInformation (Value object)
├── Product[] (Line items)
│ └── Allergen[] (Food safety)
├── Recipe[] (AI suggestions)
└── Merchant (Reference to shared entity)
Import Patterns:
// Import specific types
import type { Invoice, Product } from "@/types/invoices";
// Import enums (runtime values)
import { InvoiceCategory, ProductCategory } from "@/types/invoices";
// Import DTO payloads for API calls
import type { CreateInvoiceDtoPayload } from "@/types/invoices";
See
- Invoice for the primary aggregate root
- ../DDD for base entity types
References
Allergen
Re-exports Allergen
CreateAllergenDtoPayload
Re-exports CreateAllergenDtoPayload
DeleteAllergenDtoPayload
Re-exports DeleteAllergenDtoPayload
UpdateAllergenDtoPayload
Re-exports UpdateAllergenDtoPayload
InvoiceAnalysisOptions
Re-exports InvoiceAnalysisOptions
InvoiceCategory
Re-exports InvoiceCategory
InvoiceScanType
Re-exports InvoiceScanType
CreateInvoiceDtoPayload
Re-exports CreateInvoiceDtoPayload
CreateInvoiceScanDtoPayload
Re-exports CreateInvoiceScanDtoPayload
DeleteInvoiceDtoPayload
Re-exports DeleteInvoiceDtoPayload
DeleteInvoiceScanDtoPayload
Re-exports DeleteInvoiceScanDtoPayload
Invoice
Re-exports Invoice
InvoiceScan
Re-exports InvoiceScan
UpdateInvoiceDtoPayload
Re-exports UpdateInvoiceDtoPayload
MerchantCategory
Re-exports MerchantCategory
ContactInformation
Re-exports ContactInformation
CreateMerchantDtoPayload
Re-exports CreateMerchantDtoPayload
DeleteMerchantDtoPayload
Re-exports DeleteMerchantDtoPayload
Merchant
Re-exports Merchant
UpdateMerchantDtoPayload
Re-exports UpdateMerchantDtoPayload
PaymentType
Re-exports PaymentType
CreatePaymentInformationDtoPayload
Re-exports CreatePaymentInformationDtoPayload
DeletePaymentInformationDtoPayload
Re-exports DeletePaymentInformationDtoPayload
PaymentDetail
Re-exports PaymentDetail
PaymentInformation
Re-exports PaymentInformation
TaxDetail
Re-exports TaxDetail
UpdatePaymentInformationDtoPayload
Re-exports UpdatePaymentInformationDtoPayload
ProductCategory
Re-exports ProductCategory
CreateProductDtoPayload
Re-exports CreateProductDtoPayload
DeleteProductDtoPayload
Re-exports DeleteProductDtoPayload
Product
Re-exports Product
ProductMetadata
Re-exports ProductMetadata
UpdateProductDtoPayload
Re-exports UpdateProductDtoPayload
RecipeComplexity
Re-exports RecipeComplexity
CreateRecipeDtoPayload
Re-exports CreateRecipeDtoPayload
DeleteRecipeDtoPayload
Re-exports DeleteRecipeDtoPayload
Recipe
Re-exports Recipe
UpdateRecipeDtoPayload
Re-exports UpdateRecipeDtoPayload