Type Alias: InvoiceAnalysisOptions
@arolariu/website / types/invoices/Invoice / InvoiceAnalysisOptions
Type Alias: InvoiceAnalysisOptions
InvoiceAnalysisOptions = typeof
InvoiceAnalysisOptions[keyof typeofInvoiceAnalysisOptions]
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 costsCompleteAnalysis: Slowest, highest accuracy and data enrichment- Partial options: Balance between speed and data quality
Usage Context:
- Use
NoAnalysisfor manual data entry or pre-processed invoices - Use
CompleteAnalysisfor 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?