Skip to main content

Variable: InvoiceAnalysisOptions

@arolariu/website


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

Variable: InvoiceAnalysisOptions

const InvoiceAnalysisOptions: object

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

Represents the AI analysis options for invoice processing.

Type Declaration

NoAnalysis

readonly NoAnalysis: 0 = 0

No analysis will be performed on the invoice.

CompleteAnalysis

readonly CompleteAnalysis: 1 = 1

Full analysis will be performed on the invoice.

InvoiceOnly

readonly InvoiceOnly: 2 = 2

Only the invoice data will be analyzed.

InvoiceItemsOnly

readonly InvoiceItemsOnly: 3 = 3

Only the items on the invoice will be analyzed.

InvoiceMerchantOnly

readonly InvoiceMerchantOnly: 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 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?