From 01f95e243e3210fe79a1ffa7265b61e278d5bd9e Mon Sep 17 00:00:00 2001 From: Alejandro Uribe Date: Thu, 7 Nov 2024 10:59:43 -0500 Subject: [PATCH] Update VeryfiDocument.ts --- lib/types/VeryfiDocument.ts | 50 +++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/lib/types/VeryfiDocument.ts b/lib/types/VeryfiDocument.ts index 9ac9b71..e04a039 100644 --- a/lib/types/VeryfiDocument.ts +++ b/lib/types/VeryfiDocument.ts @@ -83,28 +83,41 @@ export declare type VeryfiDocument = { types?: string[]; version?: null | string; }; + handwritten_fields?: null | string[]; + language?: null | string[]; + owner?: null | string; + pages?: Array<{ + height: number; + is_blurry: { + score: number; + value: boolean; + }; + language: string[]; + screenshot: { + score: number; + type: null | string; + }; + width: number; + }>; + processed_pages?: null | number; + source?: null | string; + source_documents?: Array<{ + height: number; + size_kb: number; + width: number; + }>; + total_pages?: null | number; + warnings?: Array<{ + message: string; + type: string; + }>; }; notes?: null | string; ocr_text?: null | string; order_date?: null | string | BoundingElement; - owner?: null | string; - pages?: Array<{ - height: number; - is_blurry: { - score: number; - value: boolean; - }; - language: string[]; - screenshot: { - score: number; - type: null | string; - }; - width: number; - }>; payment?: null | Payment; pdf_url?: null | string; previous_balance?: null | number | BoundingElement; - processed_pages?: null | number; purchase_order_number?: null | string | BoundingElement; reference_number?: null | string | BoundingElement; rounding?: null | number | BoundingElement; @@ -114,12 +127,6 @@ export declare type VeryfiDocument = { ship_date?: null | string | BoundingElement; ship_to?: null | ShipTo; shipping?: null | number | BoundingElement; - source?: null | string; - source_documents?: Array<{ - height: number; - size_kb: number; - width: number; - }>; status?: null | string; store_number?: null | string | BoundingElement; subtotal?: null | number | BoundingElement; @@ -128,7 +135,6 @@ export declare type VeryfiDocument = { tax_lines?: null | TaxLine[]; tip?: null | number | BoundingElement; total?: null | number | BoundingElement; - total_pages?: null | number; total_quantity?: null | string | BoundingElement; total_weight?: null | string | BoundingElement; tracking_number?: null | string | BoundingElement;