Variable: InvoiceAnalysisOptions
@arolariu/website / types/invoices/Invoice / InvoiceAnalysisOptions
Variable: InvoiceAnalysisOptions
constInvoiceAnalysisOptions:object
Defined in: types/invoices/Invoice.ts:55
Represents the AI analysis options for invoice processing.
Type Declaration
NoAnalysis
readonlyNoAnalysis:0=0
No analysis will be performed on the invoice.
CompleteAnalysis
readonlyCompleteAnalysis:1=1
Full analysis will be performed on the invoice.
InvoiceOnly
readonlyInvoiceOnly:2=2
Only the invoice data will be analyzed.
InvoiceItemsOnly
readonlyInvoiceItemsOnly:3=3
Only the items on the invoice will be analyzed.
InvoiceMerchantOnly
readonlyInvoiceMerchantOnly:4=4
Only the merchant information will be analyzed.
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);