Skip to content

Commit

Permalink
Move from template_name to blueprint_name
Browse files Browse the repository at this point in the history
  • Loading branch information
alejouribesanchez committed Nov 1, 2024
1 parent 32ac80d commit ae002bd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions lib/anydocs/processAnyDocumentBase64.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ const Client = require('../client/constructor');
* @memberof Client
* @param {String} file_name The file name including the extension
* @param {String} file_base64_string To submit a file for data extraction, encode the file in Base64 format and ensure it includes the MIME type. The Base64 string should follow this structure: data:${mimeType};base64,${base64String}
* @param {String} template_name name of the extraction templates.
* @param {String} blueprint_name name of the extraction templates.
* @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
* @param {Object} kwargs Additional request parameters
* @returns {JSON} Data extracted from the document
*/
Client.prototype.process_any_document_from_base64 = async function (
file_name,
file_base64_string,
template_name,
blueprint_name,
max_pages_to_process = 20,
{...kwargs} = {}
) {

let endpoint_name = "/any-documents/";
let request_arguments = {
"file_name": file_name,
"file_data": file_base64_string,
"template_name": template_name,
"blueprint_name": blueprint_name,
"max_pages_to_process": max_pages_to_process,
};
request_arguments = Object.assign(request_arguments, kwargs);
Expand Down
6 changes: 3 additions & 3 deletions lib/anydocs/processAnyDocumentStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const Client = require('../client/constructor');
* @memberof Client
* @param {ReadStream} file ReadStream of a file to submit for data extraction
* @param {String} file_name The file name including the extension
* @param {String} template_name name of the extraction templates.
* @param {String} blueprint_name name of the extraction templates.
* @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
* @param {Object} kwargs Additional request parameters
* @returns {JSON} Data extracted from the document
*/
Client.prototype.process_any_document_from_stream = async function (
file,
file_name,
template_name,
blueprint_name,
max_pages_to_process = 20,
{...kwargs} = {}
) {
Expand All @@ -24,7 +24,7 @@ Client.prototype.process_any_document_from_stream = async function (
let request_arguments = {
"file_name": file_name,
"file": file,
"template_name": template_name,
"template_name": blueprint_name,
"max_pages_to_process": max_pages_to_process,
};
request_arguments = Object.assign(request_arguments, kwargs);
Expand Down
6 changes: 3 additions & 3 deletions lib/anydocs/processAnyDocumentUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ const Client = require('../client/constructor');
*
* @memberof Client
* @param {String} file_url url file to submit for data extraction
* @param {String} template_name name of the extraction templates.
* @param {String} blueprint_name name of the extraction templates.
* @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
* @param {Object} kwargs Additional request parameters
* @returns {JSON} Data extracted from the document
*/
Client.prototype.process_any_document_from_url = async function (
file_url,
template_name,
blueprint_name,
max_pages_to_process = 20,
{...kwargs} = {}
) {

let endpoint_name = "/any-documents/";
let request_arguments = {
"file_url": file_url,
"template_name": template_name,
"template_name": blueprint_name,
"max_pages_to_process": max_pages_to_process,
};
request_arguments = Object.assign(request_arguments, kwargs);
Expand Down
16 changes: 8 additions & 8 deletions lib/types/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ export declare class Client {
*
* @memberof Client
* @param {String} file_path Path on disk to a file to submit for data extraction
* @param {String} template_name name of the extraction templates.
* @param {String} blueprint_name name of the extraction templates.
* @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
* @param {Object} kwargs Additional request parameters
* @returns {JSON} Data extracted from the document
*/
public process_any_document(
file_path: string,
template_name?: string,
blueprint_name?: string,
max_pages_to_process?: number,
{...kwargs}?: VeryfiExtraArgs
): Promise<JsonObject>;
Expand All @@ -255,15 +255,15 @@ export declare class Client {
* @memberof Client
* @param {ReadStream} file ReadStream of a file to submit for data extraction
* @param {String} file_name The file name including the extension
* @param {String} template_name name of the extraction templates.
* @param {String} blueprint_name name of the extraction templates.
* @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
* @param {Object} kwargs Additional request parameters
* @returns {JSON} Data extracted from the document
*/
public process_any_document_from_stream(
file: fs.ReadStream,
file_name: string,
template_name?: string,
blueprint_name?: string,
max_pages_to_process?: number,
{...kwargs}?: VeryfiExtraArgs
): Promise<JsonObject>;
Expand All @@ -274,15 +274,15 @@ export declare class Client {
* @memberof Client
* @param {String} file_name The file name including the extension
* @param {String} file_base64_string To submit a file for data extraction, encode the file in Base64 format and ensure it includes the MIME type. The Base64 string should follow this structure: data:${mimeType};base64,${base64String}
* @param {String} template_name name of the extraction templates.
* @param {String} blueprint_name name of the extraction templates.
* @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
* @param {Object} kwargs Additional request parameters
* @returns {JSON} Data extracted from the document
*/
public process_any_document_from_base64(
file_name: string,
file_base64_string: string,
template_name?: string,
blueprint_name?: string,
max_pages_to_process?: number,
{...kwargs}?: VeryfiExtraArgs
): Promise<JsonObject>;
Expand All @@ -294,14 +294,14 @@ export declare class Client {
*
* @memberof Client
* @param {String} file_url url file to submit for data extraction
* @param {String} template_name name of the extraction templates.
* @param {String} blueprint_name name of the extraction templates.
* @param {number} max_pages_to_process The number of pages to process for the document. The limit is 50 pages per document.
* @param {Object} kwargs Additional request parameters
* @returns {JSON} Data extracted from the document
*/
public process_any_document_from_url(
file_url: string,
template_name?: string,
blueprint_name?: string,
max_pages_to_process?: number,
{...kwargs}?: VeryfiExtraArgs
): Promise<JsonObject>;
Expand Down

0 comments on commit ae002bd

Please sign in to comment.