@veryfi/veryfi-sdk 1.4.2 → 1.4.3
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/client/getHeaders.js
CHANGED
|
@@ -8,7 +8,7 @@ const Client = require('../client/constructor');
|
|
|
8
8
|
*/
|
|
9
9
|
Client.prototype._get_headers = function (has_files = false) {
|
|
10
10
|
let final_headers = {
|
|
11
|
-
"User-Agent": "Node.js Veryfi-Nodejs/1.4.
|
|
11
|
+
"User-Agent": "Node.js Veryfi-Nodejs/1.4.3",
|
|
12
12
|
"Accept": "application/json",
|
|
13
13
|
"Content-Type": "application/json",
|
|
14
14
|
"Client-Id": this.client_id,
|
package/lib/types/Client.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
1
|
import {VeryfiDocument} from "./VeryfiDocument";
|
|
3
2
|
import {JsonObject, VeryfiExtraArgs} from "./VeryfiExtraArgs";
|
|
4
3
|
import {Tag} from "./Tag";
|
|
@@ -137,7 +136,6 @@ export declare class Client {
|
|
|
137
136
|
* @memberof Client
|
|
138
137
|
* @param {stream.Readable} file ReadStream of a file to submit for data extraction
|
|
139
138
|
* @param {String} file_name The file name including the extension
|
|
140
|
-
* @param {Array} categories List of categories Veryfi can use to categorize the document
|
|
141
139
|
* @param {Boolean} auto_delete Delete this document from Veryfi after data has been extracted
|
|
142
140
|
* @param {Object} kwargs Additional request parameters
|
|
143
141
|
* @returns {JSON} Data extracted from the document
|
|
@@ -145,7 +143,6 @@ export declare class Client {
|
|
|
145
143
|
public process_document_from_stream(
|
|
146
144
|
file: stream.Readable,
|
|
147
145
|
file_name: string,
|
|
148
|
-
categories?: string[],
|
|
149
146
|
auto_delete?: boolean,
|
|
150
147
|
{...kwargs}?: VeryfiExtraArgs
|
|
151
148
|
): Promise<VeryfiDocument>;
|
|
@@ -321,6 +318,7 @@ export declare class Client {
|
|
|
321
318
|
* @param {number} document_id The unique identifier of the document.
|
|
322
319
|
* @param {boolean} bounding_boxes A field used to determine whether to return bounding_box and bounding_region for extracted fields in the Document response.
|
|
323
320
|
* @param {boolean} confidence_details A field used to determine whether to return the score and ocr_score fields in the Document response.
|
|
321
|
+
* @param kwargs Additional request parameters
|
|
324
322
|
* @returns {Promise<JsonObject>} Object of a previously processed blueprinted document.
|
|
325
323
|
*/
|
|
326
324
|
public get_bank_statement(document_id: number,
|