Skip to main content

Type Alias: InvoiceAnalysisOptions

@arolariu/website


@arolariu/website / types/invoices/Invoice / InvoiceAnalysisOptions

Type Alias: InvoiceAnalysisOptions

InvoiceAnalysisOptions = typeof InvoiceAnalysisOptions[keyof typeof InvoiceAnalysisOptions]

Defined in: types/invoices/Invoice.ts:55

Represents the AI analysis options for invoice processing.

Remarks

Controls which aspects of an invoice undergo AI-powered analysis. Analysis includes OCR extraction, entity recognition, and data enrichment.

Performance Trade-offs:

  • NoAnalysis: Fastest, no AI processing costs
  • CompleteAnalysis: Slowest, highest accuracy and data enrichment
  • Partial options: Balance between speed and data quality

Usage Context:

  • Use NoAnalysis for manual data entry or pre-processed invoices
  • Use CompleteAnalysis for new scanned documents requiring full extraction
  • Use partial options when only specific data needs enrichment

Example

const options: InvoiceAnalysisOptions = InvoiceAnalysisOptions.CompleteAnalysis;
await submitInvoiceForAnalysis(invoice, options);
// was this page useful?