Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mindee

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mindee - npm Package Compare versions

Comparing version 4.13.1 to 4.14.0

src/product/us/healthcareCard/healthcareCardV1.d.ts

8

CHANGELOG.md
# CHANGELOG
## v4.14.0 - 2024-07-24
### Changes
* :sparkles: add support for Healthcare Card V1
* :sparkles: add support for Invoice V4.7
* :sparkles: add support for Financial Document V1.9
* :recycle: update display for registration field
## v4.13.1 - 2024-06-10

@@ -4,0 +12,0 @@ ### Fixes

2

package.json
{
"name": "mindee",
"version": "4.13.1",
"version": "4.14.0",
"description": "Mindee Client Library for Node.js",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -62,2 +62,12 @@ "use strict";

[
"barcode-reader",
{
displayName: "Barcode Reader",
docClass: product.BarcodeReaderV1,
allWords: true,
async: false,
sync: true,
},
],
[
"cropper",

@@ -73,17 +83,17 @@ {

[
"international-id",
"financial",
{
displayName: "International Id",
docClass: product.InternationalIdV2,
allWords: false,
displayName: "Financial Document",
docClass: product.FinancialDocumentV1,
allWords: true,
async: true,
sync: false,
sync: true,
},
],
[
"invoice",
"fr-bank-account-details",
{
displayName: "Invoice",
docClass: product.InvoiceV4,
allWords: true,
displayName: "FR Bank Account Details",
docClass: product.fr.BankAccountDetailsV2,
allWords: false,
async: false,

@@ -94,17 +104,17 @@ sync: true,

[
"invoice-splitter",
"fr-id-card",
{
displayName: "Invoice Splitter",
docClass: product.InvoiceSplitterV1,
displayName: "FR ID Card",
docClass: product.fr.IdCardV1,
allWords: false,
async: true,
sync: false,
async: false,
sync: true,
},
],
[
"receipt",
"fr-carte-vitale",
{
displayName: "Expense Receipt",
docClass: product.ReceiptV5,
allWords: true,
displayName: "FR Carte Vitale",
docClass: product.fr.CarteVitaleV1,
allWords: false,
async: false,

@@ -115,16 +125,16 @@ sync: true,

[
"resume",
"fr-carte-grise",
{
displayName: "Resume",
docClass: product.ResumeV1,
displayName: "FR Carte Grise",
docClass: product.fr.CarteGriseV1,
allWords: false,
async: true,
sync: false,
async: false,
sync: true,
},
],
[
"passport",
"eu-license-plate",
{
displayName: "Passport",
docClass: product.PassportV1,
displayName: "EU License Plate",
docClass: product.eu.LicensePlateV1,
allWords: false,

@@ -136,7 +146,7 @@ async: false,

[
"financial",
"eu-driver-license",
{
displayName: "Financial Document",
docClass: product.FinancialDocumentV1,
allWords: true,
displayName: "EU Driver License",
docClass: product.eu.DriverLicenseV1,
allWords: false,
async: false,

@@ -147,7 +157,17 @@ sync: true,

[
"fr-id-card",
"international-id",
{
displayName: "FR ID Card",
docClass: product.fr.IdCardV1,
displayName: "International Id",
docClass: product.InternationalIdV2,
allWords: false,
async: true,
sync: false,
},
],
[
"invoice",
{
displayName: "Invoice",
docClass: product.InvoiceV4,
allWords: true,
async: false,

@@ -158,16 +178,16 @@ sync: true,

[
"fr-bank-account-details",
"invoice-splitter",
{
displayName: "FR Bank Account Details",
docClass: product.fr.BankAccountDetailsV2,
displayName: "Invoice Splitter",
docClass: product.InvoiceSplitterV1,
allWords: false,
async: false,
sync: true,
async: true,
sync: false,
},
],
[
"fr-carte-vitale",
"multi-receipts-detector",
{
displayName: "FR Carte Vitale",
docClass: product.fr.CarteVitaleV1,
displayName: "Multi Receipts Detector",
docClass: product.MultiReceiptsDetectorV1,
allWords: false,

@@ -179,6 +199,6 @@ async: false,

[
"eu-license-plate",
"passport",
{
displayName: "EU License Plate",
docClass: product.eu.LicensePlateV1,
displayName: "Passport",
docClass: product.PassportV1,
allWords: false,

@@ -190,7 +210,7 @@ async: false,

[
"eu-driver-license",
"receipt",
{
displayName: "EU Driver License",
docClass: product.eu.DriverLicenseV1,
allWords: false,
displayName: "Expense Receipt",
docClass: product.ReceiptV5,
allWords: true,
async: false,

@@ -201,2 +221,12 @@ sync: true,

[
"resume",
{
displayName: "Resume",
docClass: product.ResumeV1,
allWords: false,
async: true,
sync: false,
},
],
[
"us-bank-check",

@@ -221,2 +251,32 @@ {

],
[
"us-healthcare-card",
{
displayName: "US Healthcare Card",
docClass: product.us.HealthcareCardV1,
allWords: false,
async: true,
sync: false,
},
],
[
"us-mail",
{
displayName: "US Mail",
docClass: product.us.UsMailV2,
allWords: false,
async: true,
sync: false,
},
],
[
"us-w9",
{
displayName: "US W9",
docClass: product.us.W9V1,
allWords: false,
async: true,
sync: false,
},
],
]);

@@ -223,0 +283,0 @@ //

@@ -12,2 +12,5 @@ import { Field } from "./field";

constructor({ prediction, valueKey, reconstructed, pageId, }: BaseFieldConstructor);
toTableLine(): string;
toString(): string;
private printableValues;
}

@@ -5,2 +5,3 @@ "use strict";

const field_1 = require("./field");
const common_1 = require("../common");
/**

@@ -14,3 +15,17 @@ * A company registration item.

}
toTableLine() {
const printable = this.printableValues();
return `| ${printable["type"].padEnd(15)} | ${printable["value"].padEnd(20)} `;
}
toString() {
const printable = this.printableValues();
return `Type: ${printable["type"]}, Value: ${printable["value"]}`;
}
printableValues() {
const printable = {};
printable["type"] = (0, common_1.cleanOutString)(this.type);
printable["value"] = (0, common_1.cleanOutString)((this.value ?? "").toString());
return printable;
}
}
exports.CompanyRegistrationField = CompanyRegistrationField;

@@ -5,3 +5,3 @@ import { Prediction, StringDict } from "../../parsing/common";

/**
* Financial Document API version 1.7 document data.
* Financial Document API version 1.9 document data.
*/

@@ -8,0 +8,0 @@ export declare class FinancialDocumentV1Document implements Prediction {

@@ -8,3 +8,3 @@ "use strict";

/**
* Financial Document API version 1.7 document data.
* Financial Document API version 1.9 document data.
*/

@@ -152,3 +152,3 @@ class FinancialDocumentV1Document {

if (this.lineItems && this.lineItems.length > 0) {
const lineItemsColSizes = [38, 14, 10, 12, 14, 14, 12];
const lineItemsColSizes = [38, 14, 10, 12, 14, 14, 17, 12];
lineItemsSummary += "\n" + (0, common_1.lineSeparator)(lineItemsColSizes, "-") + "\n ";

@@ -161,2 +161,3 @@ lineItemsSummary += "| Description ";

lineItemsSummary += "| Total Amount ";
lineItemsSummary += "| Unit of measure ";
lineItemsSummary += "| Unit Price ";

@@ -163,0 +164,0 @@ lineItemsSummary += "|\n" + (0, common_1.lineSeparator)(lineItemsColSizes, "=");

@@ -20,2 +20,4 @@ import { StringDict } from "../../parsing/common";

totalAmount: number | undefined;
/** The item unit of measure. */
unitMeasure: string | undefined;
/** The item unit price. */

@@ -22,0 +24,0 @@ unitPrice: number | undefined;

@@ -38,2 +38,3 @@ "use strict";

}
this.unitMeasure = prediction["unit_measure"];
if (prediction["unit_price"] && !isNaN(prediction["unit_price"])) {

@@ -65,2 +66,4 @@ this.unitPrice = +parseFloat(prediction["unit_price"]).toFixed(3);

printable.totalAmount +
", Unit of measure: " +
printable.unitMeasure +
", Unit Price: " +

@@ -87,2 +90,4 @@ printable.unitPrice);

" | " +
printable.unitMeasure.padEnd(15) +
" | " +
printable.unitPrice.padEnd(10) +

@@ -109,4 +114,9 @@ " |");

totalAmount: this.totalAmount !== undefined ? (0, standard_1.floatToString)(this.totalAmount) : "",
unitMeasure: this.unitMeasure ?
this.unitMeasure.length <= 15 ?
this.unitMeasure :
this.unitMeasure.slice(0, 12) + "..." :
"",
unitPrice: this.unitPrice !== undefined ? (0, standard_1.floatToString)(this.unitPrice) : "",
};
};
import { Prediction, StringDict } from "../../parsing/common";
import { ClassificationField, DateField, StringField } from "../../parsing/standard";
/**
* International ID API version 2.0 document data.
* International ID API version 2.1 document data.
*/

@@ -6,0 +6,0 @@ export declare class InternationalIdV2Document implements Prediction {

@@ -7,3 +7,3 @@ "use strict";

/**
* International ID API version 2.0 document data.
* International ID API version 2.1 document data.
*/

@@ -10,0 +10,0 @@ class InternationalIdV2Document {

@@ -5,3 +5,3 @@ import { Prediction, StringDict } from "../../parsing/common";

/**
* Invoice API version 4.6 document data.
* Invoice API version 4.7 document data.
*/

@@ -8,0 +8,0 @@ export declare class InvoiceV4Document implements Prediction {

@@ -8,3 +8,3 @@ "use strict";

/**
* Invoice API version 4.6 document data.
* Invoice API version 4.7 document data.
*/

@@ -130,3 +130,3 @@ class InvoiceV4Document {

if (this.lineItems && this.lineItems.length > 0) {
const lineItemsColSizes = [38, 14, 10, 12, 14, 14, 12];
const lineItemsColSizes = [38, 14, 10, 12, 14, 14, 17, 12];
lineItemsSummary += "\n" + (0, common_1.lineSeparator)(lineItemsColSizes, "-") + "\n ";

@@ -139,2 +139,3 @@ lineItemsSummary += "| Description ";

lineItemsSummary += "| Total Amount ";
lineItemsSummary += "| Unit of measure ";
lineItemsSummary += "| Unit Price ";

@@ -141,0 +142,0 @@ lineItemsSummary += "|\n" + (0, common_1.lineSeparator)(lineItemsColSizes, "=");

@@ -20,2 +20,4 @@ import { StringDict } from "../../parsing/common";

totalAmount: number | undefined;
/** The item unit of measure. */
unitMeasure: string | undefined;
/** The item unit price. */

@@ -22,0 +24,0 @@ unitPrice: number | undefined;

@@ -38,2 +38,3 @@ "use strict";

}
this.unitMeasure = prediction["unit_measure"];
if (prediction["unit_price"] && !isNaN(prediction["unit_price"])) {

@@ -65,2 +66,4 @@ this.unitPrice = +parseFloat(prediction["unit_price"]).toFixed(3);

printable.totalAmount +
", Unit of measure: " +
printable.unitMeasure +
", Unit Price: " +

@@ -87,2 +90,4 @@ printable.unitPrice);

" | " +
printable.unitMeasure.padEnd(15) +
" | " +
printable.unitPrice.padEnd(10) +

@@ -109,4 +114,9 @@ " |");

totalAmount: this.totalAmount !== undefined ? (0, standard_1.floatToString)(this.totalAmount) : "",
unitMeasure: this.unitMeasure ?
this.unitMeasure.length <= 15 ?
this.unitMeasure :
this.unitMeasure.slice(0, 12) + "..." :
"",
unitPrice: this.unitPrice !== undefined ? (0, standard_1.floatToString)(this.unitPrice) : "",
};
};
import { Prediction, StringDict } from "../../parsing/common";
import { PositionField } from "../../parsing/standard";
/**
* Multi Receipts Detector API version 1.0 document data.
* Multi Receipts Detector API version 1.1 document data.
*/

@@ -6,0 +6,0 @@ export declare class MultiReceiptsDetectorV1Document implements Prediction {

@@ -7,3 +7,3 @@ "use strict";

/**
* Multi Receipts Detector API version 1.0 document data.
* Multi Receipts Detector API version 1.1 document data.
*/

@@ -10,0 +10,0 @@ class MultiReceiptsDetectorV1Document {

@@ -5,3 +5,3 @@ import { Prediction, StringDict } from "../../parsing/common";

/**
* Receipt API version 5.2 document data.
* Receipt API version 5.3 document data.
*/

@@ -8,0 +8,0 @@ export declare class ReceiptV5Document implements Prediction {

@@ -8,3 +8,3 @@ "use strict";

/**
* Receipt API version 5.2 document data.
* Receipt API version 5.3 document data.
*/

@@ -11,0 +11,0 @@ class ReceiptV5Document {

export { BankCheckV1 } from "./bankCheck/bankCheckV1";
export { DriverLicenseV1 } from "./driverLicense/driverLicenseV1";
export { HealthcareCardV1 } from "./healthcareCard/healthcareCardV1";
export { UsMailV2 } from "./usMail/usMailV2";
export { W9V1 } from "./w9/w9V1";
export { UsMailV2 } from "./usMail/usMailV2";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UsMailV2 = exports.W9V1 = exports.DriverLicenseV1 = exports.BankCheckV1 = void 0;
exports.W9V1 = exports.UsMailV2 = exports.HealthcareCardV1 = exports.DriverLicenseV1 = exports.BankCheckV1 = void 0;
var bankCheckV1_1 = require("./bankCheck/bankCheckV1");

@@ -8,5 +8,7 @@ Object.defineProperty(exports, "BankCheckV1", { enumerable: true, get: function () { return bankCheckV1_1.BankCheckV1; } });

Object.defineProperty(exports, "DriverLicenseV1", { enumerable: true, get: function () { return driverLicenseV1_1.DriverLicenseV1; } });
var healthcareCardV1_1 = require("./healthcareCard/healthcareCardV1");
Object.defineProperty(exports, "HealthcareCardV1", { enumerable: true, get: function () { return healthcareCardV1_1.HealthcareCardV1; } });
var usMailV2_1 = require("./usMail/usMailV2");
Object.defineProperty(exports, "UsMailV2", { enumerable: true, get: function () { return usMailV2_1.UsMailV2; } });
var w9V1_1 = require("./w9/w9V1");
Object.defineProperty(exports, "W9V1", { enumerable: true, get: function () { return w9V1_1.W9V1; } });
var usMailV2_1 = require("./usMail/usMailV2");
Object.defineProperty(exports, "UsMailV2", { enumerable: true, get: function () { return usMailV2_1.UsMailV2; } });
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc