@veryfi/veryfi-sdk 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/main.js +1 -1
- package/lib/types/main.d.ts +2 -2
- package/package.json +1 -1
package/lib/main.js
CHANGED
|
@@ -275,9 +275,9 @@ Client.prototype.process_document_buffer = async function (
|
|
|
275
275
|
* @param {Array} file_urls Required if file_url isn't specified. List of publicly accessible URLs to multiple files, e.g. ["https://cdn.example.com/receipt1.jpg", "https://cdn.example.com/receipt2.jpg"]
|
|
276
276
|
* @param {Array} categories List of categories to use when categorizing the document
|
|
277
277
|
* @param {boolean} delete_after_processing Delete this document from Veryfi after data has been extracted
|
|
278
|
-
* @param {int} max_pages_to_process When sending a long document to Veryfi for processing, this parameter controls how many pages of the document will be read and processed, starting from page 1.
|
|
279
278
|
* @param {int} boost_mode Flag that tells Veryfi whether boost mode should be enabled. When set to 1, Veryfi will skip data enrichment steps, but will process the document faster. Default value for this flag is 0
|
|
280
279
|
* @param {string} external_id Optional custom document identifier. Use this if you would like to assign your own ID to documents
|
|
280
|
+
* @param {int} max_pages_to_process When sending a long document to Veryfi for processing, this parameter controls how many pages of the document will be read and processed, starting from page 1.
|
|
281
281
|
* @param {Object} kwargs Additional request parameters
|
|
282
282
|
* @return {JSON} Data extracted from the document.
|
|
283
283
|
*/
|
package/lib/types/main.d.ts
CHANGED
|
@@ -211,20 +211,20 @@ export declare class Client {
|
|
|
211
211
|
* @param {string[]} file_urls Required if file_url isn't specified. List of publicly accessible URLs to multiple files, e.g. ['https://cdn.example.com/receipt1.jpg', 'https://cdn.example.com/receipt2.jpg']
|
|
212
212
|
* @param {string[]} categories List of categories to use when categorizing the document
|
|
213
213
|
* @param {boolean} delete_after_processing Delete this document from Veryfi after data has been extracted
|
|
214
|
-
* @param {number} max_pages_to_process When sending a long document to Veryfi for processing, this parameter controls how many pages of the document will be read and processed, starting from page 1.
|
|
215
214
|
* @param {number} boost_mode Flag that tells Veryfi whether boost mode should be enabled. When set to 1, Veryfi will skip data enrichment steps, but will process the document faster. Default value for this flag is 0
|
|
216
215
|
* @param {string} external_id Optional custom document identifier. Use this if you would like to assign your own ID to documents
|
|
216
|
+
* @param {number} max_pages_to_process When sending a long document to Veryfi for processing, this parameter controls how many pages of the document will be read and processed, starting from page 1.
|
|
217
217
|
* @param {VeryfiExtraArgs} kwargs Additional request parameters
|
|
218
218
|
* @return {Promise<VeryfiDocument>} Object of data extracted from the document
|
|
219
219
|
*/
|
|
220
220
|
public process_document_url(
|
|
221
221
|
file_url?: string,
|
|
222
|
+
file_urls?: string[],
|
|
222
223
|
categories?: string[],
|
|
223
224
|
delete_after_processing?: boolean,
|
|
224
225
|
boost_mode?: number,
|
|
225
226
|
external_id?: string,
|
|
226
227
|
max_pages_to_process?: number,
|
|
227
|
-
file_urls?: string[],
|
|
228
228
|
{ ...kwargs }?: VeryfiExtraArgs
|
|
229
229
|
): Promise<VeryfiDocument>;
|
|
230
230
|
|