mindee 4.8.2 → 4.9.0
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/CHANGELOG.md +9 -0
- package/README.md +6 -3
- package/package.json +1 -1
- package/src/cli.js +40 -0
- package/src/product/barcodeReader/barcodeReaderV1.js +6 -1
- package/src/product/cropper/cropperV1.js +6 -1
- package/src/product/eu/driverLicense/driverLicenseV1.d.ts +17 -0
- package/src/product/eu/driverLicense/driverLicenseV1.js +28 -0
- package/src/product/eu/driverLicense/driverLicenseV1Document.d.ts +36 -0
- package/src/product/eu/driverLicense/driverLicenseV1Document.js +79 -0
- package/src/product/eu/driverLicense/driverLicenseV1Page.d.ts +14 -0
- package/src/product/eu/driverLicense/driverLicenseV1Page.js +29 -0
- package/src/product/eu/driverLicense/internal.d.ts +2 -0
- package/src/product/eu/driverLicense/internal.js +7 -0
- package/src/product/eu/index.d.ts +1 -0
- package/src/product/eu/index.js +3 -1
- package/src/product/eu/internal.d.ts +1 -0
- package/src/product/eu/internal.js +2 -1
- package/src/product/eu/licensePlate/licensePlateV1.js +6 -1
- package/src/product/financialDocument/financialDocumentV1.js +6 -1
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV1.js +6 -1
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2.js +6 -1
- package/src/product/fr/carteGrise/carteGriseV1.js +6 -1
- package/src/product/fr/carteVitale/carteVitaleV1.js +6 -1
- package/src/product/fr/idCard/idCardV1.js +6 -1
- package/src/product/fr/idCard/idCardV2.js +6 -1
- package/src/product/index.d.ts +3 -0
- package/src/product/index.js +7 -1
- package/src/product/internal.d.ts +2 -0
- package/src/product/internal.js +3 -1
- package/src/product/internationalId/internal.d.ts +4 -0
- package/src/product/internationalId/internal.js +11 -0
- package/src/product/internationalId/internationalIdV1.d.ts +16 -0
- package/src/product/internationalId/internationalIdV1.js +27 -0
- package/src/product/internationalId/internationalIdV1Document.d.ts +42 -0
- package/src/product/internationalId/internationalIdV1Document.js +101 -0
- package/src/product/internationalId/internationalIdV2.d.ts +16 -0
- package/src/product/internationalId/internationalIdV2.js +27 -0
- package/src/product/internationalId/internationalIdV2Document.d.ts +46 -0
- package/src/product/internationalId/internationalIdV2Document.js +111 -0
- package/src/product/invoice/invoiceV4.js +6 -1
- package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +6 -1
- package/src/product/passport/passportV1.js +6 -1
- package/src/product/proofOfAddress/proofOfAddressV1.js +6 -1
- package/src/product/receipt/receiptV5.js +6 -1
- package/src/product/resume/internal.d.ts +7 -0
- package/src/product/resume/internal.js +17 -0
- package/src/product/resume/resumeV1.d.ts +16 -0
- package/src/product/resume/resumeV1.js +27 -0
- package/src/product/resume/resumeV1Certificate.d.ts +34 -0
- package/src/product/resume/resumeV1Certificate.js +87 -0
- package/src/product/resume/resumeV1Document.d.ts +51 -0
- package/src/product/resume/resumeV1Document.js +197 -0
- package/src/product/resume/resumeV1Education.d.ts +40 -0
- package/src/product/resume/resumeV1Education.js +117 -0
- package/src/product/resume/resumeV1Language.d.ts +30 -0
- package/src/product/resume/resumeV1Language.js +67 -0
- package/src/product/resume/resumeV1ProfessionalExperience.d.ts +42 -0
- package/src/product/resume/resumeV1ProfessionalExperience.js +127 -0
- package/src/product/resume/resumeV1SocialNetworksUrl.d.ts +30 -0
- package/src/product/resume/resumeV1SocialNetworksUrl.js +67 -0
- package/src/product/us/bankCheck/bankCheckV1.js +6 -1
- package/src/product/us/driverLicense/driverLicenseV1.js +6 -1
- package/src/product/us/w9/w9V1.js +6 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StringDict } from "../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* The list of social network profiles of the candidate.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ResumeV1SocialNetworksUrl {
|
|
7
|
+
#private;
|
|
8
|
+
/** The name of the social network. */
|
|
9
|
+
name: string | undefined;
|
|
10
|
+
/** The URL of the social network. */
|
|
11
|
+
url: string | undefined;
|
|
12
|
+
/** Confidence score */
|
|
13
|
+
confidence: number;
|
|
14
|
+
/** The document page on which the information was found. */
|
|
15
|
+
pageId: number;
|
|
16
|
+
/**
|
|
17
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
18
|
+
* the field in the document.
|
|
19
|
+
*/
|
|
20
|
+
polygon: Polygon;
|
|
21
|
+
constructor({ prediction }: StringDict);
|
|
22
|
+
/**
|
|
23
|
+
* Default string representation.
|
|
24
|
+
*/
|
|
25
|
+
toString(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
28
|
+
*/
|
|
29
|
+
toTableLine(): string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _ResumeV1SocialNetworksUrl_instances, _ResumeV1SocialNetworksUrl_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ResumeV1SocialNetworksUrl = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* The list of social network profiles of the candidate.
|
|
12
|
+
*/
|
|
13
|
+
class ResumeV1SocialNetworksUrl {
|
|
14
|
+
constructor({ prediction = {} }) {
|
|
15
|
+
_ResumeV1SocialNetworksUrl_instances.add(this);
|
|
16
|
+
/** Confidence score */
|
|
17
|
+
this.confidence = 0.0;
|
|
18
|
+
/**
|
|
19
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
+
* the field in the document.
|
|
21
|
+
*/
|
|
22
|
+
this.polygon = [];
|
|
23
|
+
this.name = prediction["name"];
|
|
24
|
+
this.url = prediction["url"];
|
|
25
|
+
this.pageId = prediction["page_id"];
|
|
26
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
27
|
+
if (prediction["polygon"]) {
|
|
28
|
+
this.polygon = prediction.polygon;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Default string representation.
|
|
33
|
+
*/
|
|
34
|
+
toString() {
|
|
35
|
+
const printable = __classPrivateFieldGet(this, _ResumeV1SocialNetworksUrl_instances, "m", _ResumeV1SocialNetworksUrl_printableValues).call(this);
|
|
36
|
+
return ("Name: " +
|
|
37
|
+
printable.name +
|
|
38
|
+
", URL: " +
|
|
39
|
+
printable.url);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
43
|
+
*/
|
|
44
|
+
toTableLine() {
|
|
45
|
+
const printable = __classPrivateFieldGet(this, _ResumeV1SocialNetworksUrl_instances, "m", _ResumeV1SocialNetworksUrl_printableValues).call(this);
|
|
46
|
+
return ("| " +
|
|
47
|
+
printable.name.padEnd(20) +
|
|
48
|
+
" | " +
|
|
49
|
+
printable.url.padEnd(50) +
|
|
50
|
+
" |");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.ResumeV1SocialNetworksUrl = ResumeV1SocialNetworksUrl;
|
|
54
|
+
_ResumeV1SocialNetworksUrl_instances = new WeakSet(), _ResumeV1SocialNetworksUrl_printableValues = function _ResumeV1SocialNetworksUrl_printableValues() {
|
|
55
|
+
return {
|
|
56
|
+
name: this.name ?
|
|
57
|
+
this.name.length <= 20 ?
|
|
58
|
+
this.name :
|
|
59
|
+
this.name.slice(0, 17) + "..." :
|
|
60
|
+
"",
|
|
61
|
+
url: this.url ?
|
|
62
|
+
this.url.length <= 50 ?
|
|
63
|
+
this.url :
|
|
64
|
+
this.url.slice(0, 47) + "..." :
|
|
65
|
+
"",
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -17,7 +17,12 @@ class BankCheckV1 extends common_1.Inference {
|
|
|
17
17
|
/** The document's pages. */
|
|
18
18
|
this.pages = [];
|
|
19
19
|
this.prediction = new bankCheckV1Document_1.BankCheckV1Document(rawPrediction["prediction"]);
|
|
20
|
-
|
|
20
|
+
rawPrediction["pages"].forEach((page) => {
|
|
21
|
+
if (page.prediction !== undefined && page.prediction !== null &&
|
|
22
|
+
Object.keys(page.prediction).length > 0) {
|
|
23
|
+
this.pages.push(new common_1.Page(bankCheckV1Page_1.BankCheckV1Page, page, page["id"], page["orientation"]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
exports.BankCheckV1 = BankCheckV1;
|
|
@@ -17,7 +17,12 @@ class DriverLicenseV1 extends common_1.Inference {
|
|
|
17
17
|
/** The document's pages. */
|
|
18
18
|
this.pages = [];
|
|
19
19
|
this.prediction = new driverLicenseV1Document_1.DriverLicenseV1Document(rawPrediction["prediction"]);
|
|
20
|
-
|
|
20
|
+
rawPrediction["pages"].forEach((page) => {
|
|
21
|
+
if (page.prediction !== undefined && page.prediction !== null &&
|
|
22
|
+
Object.keys(page.prediction).length > 0) {
|
|
23
|
+
this.pages.push(new common_1.Page(driverLicenseV1Page_1.DriverLicenseV1Page, page, page["id"], page["orientation"]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
exports.DriverLicenseV1 = DriverLicenseV1;
|
|
@@ -17,7 +17,12 @@ class W9V1 extends common_1.Inference {
|
|
|
17
17
|
/** The document's pages. */
|
|
18
18
|
this.pages = [];
|
|
19
19
|
this.prediction = new w9V1Document_1.W9V1Document();
|
|
20
|
-
|
|
20
|
+
rawPrediction["pages"].forEach((page) => {
|
|
21
|
+
if (page.prediction !== undefined && page.prediction !== null &&
|
|
22
|
+
Object.keys(page.prediction).length > 0) {
|
|
23
|
+
this.pages.push(new common_1.Page(w9V1Page_1.W9V1Page, page, page["id"], page["orientation"]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
exports.W9V1 = W9V1;
|