@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.
@@ -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.2",
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,
@@ -29,7 +29,6 @@ Client.prototype.process_document = async function (
29
29
  return this.process_document_from_stream(
30
30
  file,
31
31
  file_name,
32
- categories,
33
32
  auto_delete,
34
33
  kwargs
35
34
  );
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryfi/veryfi-sdk",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Node.js module for communicating with the Veryfi OCR API",
5
5
  "main": "lib/client/client.js",
6
6
  "typings": "lib/types/Client.ts",