mindee 4.13.1 → 4.14.1
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 +18 -0
- package/README.md +9 -9
- package/package.json +2 -2
- package/src/cli.js +108 -48
- package/src/parsing/standard/companyRegistration.d.ts +3 -0
- package/src/parsing/standard/companyRegistration.js +15 -0
- package/src/product/barcodeReader/index.d.ts +1 -0
- package/src/product/barcodeReader/index.js +5 -0
- package/src/product/cropper/index.d.ts +1 -0
- package/src/product/cropper/index.js +5 -0
- package/src/product/eu/driverLicense/index.d.ts +1 -0
- package/src/product/eu/driverLicense/index.js +5 -0
- package/src/product/eu/driverLicense/internal.d.ts +1 -0
- package/src/product/eu/driverLicense/internal.js +3 -1
- package/src/product/eu/index.d.ts +1 -1
- package/src/product/eu/index.js +3 -3
- package/src/product/eu/internal.d.ts +1 -1
- package/src/product/eu/internal.js +2 -2
- package/src/product/eu/licensePlate/index.d.ts +1 -0
- package/src/product/eu/licensePlate/index.js +5 -0
- package/src/product/financialDocument/financialDocumentV1Document.d.ts +1 -1
- package/src/product/financialDocument/financialDocumentV1Document.js +3 -2
- package/src/product/financialDocument/financialDocumentV1LineItem.d.ts +2 -0
- package/src/product/financialDocument/financialDocumentV1LineItem.js +10 -0
- package/src/product/financialDocument/index.d.ts +1 -0
- package/src/product/financialDocument/index.js +5 -0
- package/src/product/fr/bankAccountDetails/index.d.ts +2 -0
- package/src/product/fr/bankAccountDetails/index.js +7 -0
- package/src/product/fr/bankAccountDetails/internal.d.ts +1 -1
- package/src/product/fr/bankAccountDetails/internal.js +3 -3
- package/src/product/fr/carteGrise/index.d.ts +1 -0
- package/src/product/fr/carteGrise/index.js +5 -0
- package/src/product/fr/carteVitale/index.d.ts +1 -0
- package/src/product/fr/carteVitale/index.js +5 -0
- package/src/product/fr/idCard/index.d.ts +2 -0
- package/src/product/fr/idCard/index.js +7 -0
- package/src/product/fr/idCard/internal.d.ts +3 -1
- package/src/product/fr/idCard/internal.js +7 -3
- package/src/product/fr/index.d.ts +3 -3
- package/src/product/fr/index.js +7 -7
- package/src/product/fr/internal.d.ts +1 -1
- package/src/product/fr/internal.js +2 -2
- package/src/product/index.d.ts +2 -2
- package/src/product/index.js +5 -5
- package/src/product/internal.d.ts +1 -1
- package/src/product/internal.js +2 -2
- package/src/product/internationalId/index.d.ts +1 -0
- package/src/product/internationalId/index.js +5 -0
- package/src/product/internationalId/internationalIdV2Document.d.ts +1 -1
- package/src/product/internationalId/internationalIdV2Document.js +1 -1
- package/src/product/invoice/index.d.ts +1 -0
- package/src/product/invoice/index.js +5 -0
- package/src/product/invoice/invoiceV4Document.d.ts +1 -1
- package/src/product/invoice/invoiceV4Document.js +3 -2
- package/src/product/invoice/invoiceV4LineItem.d.ts +2 -0
- package/src/product/invoice/invoiceV4LineItem.js +10 -0
- package/src/product/multiReceiptsDetector/index.d.ts +1 -0
- package/src/product/multiReceiptsDetector/index.js +5 -0
- package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +1 -1
- package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +1 -1
- package/src/product/passport/index.d.ts +1 -0
- package/src/product/passport/index.js +5 -0
- package/src/product/proofOfAddress/index.d.ts +1 -0
- package/src/product/proofOfAddress/index.js +5 -0
- package/src/product/receipt/index.d.ts +1 -0
- package/src/product/receipt/index.js +5 -0
- package/src/product/receipt/receiptV5Document.d.ts +1 -1
- package/src/product/receipt/receiptV5Document.js +1 -1
- package/src/product/resume/index.d.ts +1 -0
- package/src/product/resume/index.js +5 -0
- package/src/product/resume/internal.d.ts +1 -1
- package/src/product/resume/internal.js +3 -3
- package/src/product/us/bankCheck/index.d.ts +1 -0
- package/src/product/us/bankCheck/index.js +5 -0
- package/src/product/us/driverLicense/index.d.ts +1 -0
- package/src/product/us/driverLicense/index.js +5 -0
- package/src/product/us/healthcareCard/healthcareCardV1.d.ts +16 -0
- package/src/product/us/healthcareCard/healthcareCardV1.js +27 -0
- package/src/product/us/healthcareCard/healthcareCardV1Copay.d.ts +30 -0
- package/src/product/us/healthcareCard/healthcareCardV1Copay.js +66 -0
- package/src/product/us/healthcareCard/healthcareCardV1Document.d.ts +37 -0
- package/src/product/us/healthcareCard/healthcareCardV1Document.js +96 -0
- package/src/product/us/healthcareCard/index.d.ts +3 -0
- package/src/product/us/healthcareCard/index.js +9 -0
- package/src/product/us/healthcareCard/internal.d.ts +3 -0
- package/src/product/us/healthcareCard/internal.js +9 -0
- package/src/product/us/index.d.ts +2 -1
- package/src/product/us/index.js +5 -3
- package/src/product/us/internal.d.ts +1 -0
- package/src/product/us/internal.js +2 -1
- package/src/product/us/w9/index.d.ts +1 -0
- package/src/product/us/w9/index.js +5 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.IdCardV2Page = exports.IdCardV2Document = exports.IdCardV2 = exports.IdCardV1Page = exports.IdCardV1Document = exports.IdCardV1 = void 0;
|
|
4
4
|
var idCardV1_1 = require("./idCardV1");
|
|
5
5
|
Object.defineProperty(exports, "IdCardV1", { enumerable: true, get: function () { return idCardV1_1.IdCardV1; } });
|
|
6
|
-
var idCardV2_1 = require("./idCardV2");
|
|
7
|
-
Object.defineProperty(exports, "IdCardV2", { enumerable: true, get: function () { return idCardV2_1.IdCardV2; } });
|
|
8
6
|
var idCardV1Document_1 = require("./idCardV1Document");
|
|
9
7
|
Object.defineProperty(exports, "IdCardV1Document", { enumerable: true, get: function () { return idCardV1Document_1.IdCardV1Document; } });
|
|
10
8
|
var idCardV1Page_1 = require("./idCardV1Page");
|
|
11
9
|
Object.defineProperty(exports, "IdCardV1Page", { enumerable: true, get: function () { return idCardV1Page_1.IdCardV1Page; } });
|
|
10
|
+
var idCardV2_1 = require("./idCardV2");
|
|
11
|
+
Object.defineProperty(exports, "IdCardV2", { enumerable: true, get: function () { return idCardV2_1.IdCardV2; } });
|
|
12
|
+
var idCardV2Document_1 = require("./idCardV2Document");
|
|
13
|
+
Object.defineProperty(exports, "IdCardV2Document", { enumerable: true, get: function () { return idCardV2Document_1.IdCardV2Document; } });
|
|
14
|
+
var idCardV2Page_1 = require("./idCardV2Page");
|
|
15
|
+
Object.defineProperty(exports, "IdCardV2Page", { enumerable: true, get: function () { return idCardV2Page_1.IdCardV2Page; } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { IdCardV1 } from "./idCard/idCardV1";
|
|
2
|
-
export { IdCardV2 } from "./idCard/idCardV2";
|
|
3
|
-
export { CarteGriseV1 } from "./carteGrise/carteGriseV1";
|
|
4
1
|
export { BankAccountDetailsV1 } from "./bankAccountDetails/bankAccountDetailsV1";
|
|
5
2
|
export { BankAccountDetailsV2 } from "./bankAccountDetails/bankAccountDetailsV2";
|
|
3
|
+
export { CarteGriseV1 } from "./carteGrise/carteGriseV1";
|
|
6
4
|
export { CarteVitaleV1 } from "./carteVitale/carteVitaleV1";
|
|
5
|
+
export { IdCardV1 } from "./idCard/idCardV1";
|
|
6
|
+
export { IdCardV2 } from "./idCard/idCardV2";
|
package/src/product/fr/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var idCardV1_1 = require("./idCard/idCardV1");
|
|
5
|
-
Object.defineProperty(exports, "IdCardV1", { enumerable: true, get: function () { return idCardV1_1.IdCardV1; } });
|
|
6
|
-
var idCardV2_1 = require("./idCard/idCardV2");
|
|
7
|
-
Object.defineProperty(exports, "IdCardV2", { enumerable: true, get: function () { return idCardV2_1.IdCardV2; } });
|
|
8
|
-
var carteGriseV1_1 = require("./carteGrise/carteGriseV1");
|
|
9
|
-
Object.defineProperty(exports, "CarteGriseV1", { enumerable: true, get: function () { return carteGriseV1_1.CarteGriseV1; } });
|
|
3
|
+
exports.IdCardV2 = exports.IdCardV1 = exports.CarteVitaleV1 = exports.CarteGriseV1 = exports.BankAccountDetailsV2 = exports.BankAccountDetailsV1 = void 0;
|
|
10
4
|
var bankAccountDetailsV1_1 = require("./bankAccountDetails/bankAccountDetailsV1");
|
|
11
5
|
Object.defineProperty(exports, "BankAccountDetailsV1", { enumerable: true, get: function () { return bankAccountDetailsV1_1.BankAccountDetailsV1; } });
|
|
12
6
|
var bankAccountDetailsV2_1 = require("./bankAccountDetails/bankAccountDetailsV2");
|
|
13
7
|
Object.defineProperty(exports, "BankAccountDetailsV2", { enumerable: true, get: function () { return bankAccountDetailsV2_1.BankAccountDetailsV2; } });
|
|
8
|
+
var carteGriseV1_1 = require("./carteGrise/carteGriseV1");
|
|
9
|
+
Object.defineProperty(exports, "CarteGriseV1", { enumerable: true, get: function () { return carteGriseV1_1.CarteGriseV1; } });
|
|
14
10
|
var carteVitaleV1_1 = require("./carteVitale/carteVitaleV1");
|
|
15
11
|
Object.defineProperty(exports, "CarteVitaleV1", { enumerable: true, get: function () { return carteVitaleV1_1.CarteVitaleV1; } });
|
|
12
|
+
var idCardV1_1 = require("./idCard/idCardV1");
|
|
13
|
+
Object.defineProperty(exports, "IdCardV1", { enumerable: true, get: function () { return idCardV1_1.IdCardV1; } });
|
|
14
|
+
var idCardV2_1 = require("./idCard/idCardV2");
|
|
15
|
+
Object.defineProperty(exports, "IdCardV2", { enumerable: true, get: function () { return idCardV2_1.IdCardV2; } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * as bankAccountDetails from "./bankAccountDetails/internal";
|
|
2
|
+
export * as carteGrise from "./carteGrise/internal";
|
|
2
3
|
export * as carteVitale from "./carteVitale/internal";
|
|
3
4
|
export * as idCard from "./idCard/internal";
|
|
4
|
-
export * as carteGrise from "./carteGrise/internal";
|
|
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.idCard = exports.carteVitale = exports.carteGrise = exports.bankAccountDetails = void 0;
|
|
27
27
|
exports.bankAccountDetails = __importStar(require("./bankAccountDetails/internal"));
|
|
28
|
+
exports.carteGrise = __importStar(require("./carteGrise/internal"));
|
|
28
29
|
exports.carteVitale = __importStar(require("./carteVitale/internal"));
|
|
29
30
|
exports.idCard = __importStar(require("./idCard/internal"));
|
|
30
|
-
exports.carteGrise = __importStar(require("./carteGrise/internal"));
|
package/src/product/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ export { BarcodeReaderV1 } from "./barcodeReader/barcodeReaderV1";
|
|
|
2
2
|
export { CropperV1 } from "./cropper/cropperV1";
|
|
3
3
|
export { CustomV1 } from "./custom/customV1";
|
|
4
4
|
export { FinancialDocumentV1 } from "./financialDocument/financialDocumentV1";
|
|
5
|
-
export {
|
|
5
|
+
export { GeneratedV1 } from "./generated/generatedV1";
|
|
6
6
|
export { InternationalIdV1 } from "./internationalId/internationalIdV1";
|
|
7
7
|
export { InternationalIdV2 } from "./internationalId/internationalIdV2";
|
|
8
|
+
export { InvoiceV4 } from "./invoice/invoiceV4";
|
|
8
9
|
export { InvoiceSplitterV1 } from "./invoiceSplitter/invoiceSplitterV1";
|
|
9
|
-
export { GeneratedV1 } from "./generated/generatedV1";
|
|
10
10
|
export { MultiReceiptsDetectorV1 } from "./multiReceiptsDetector/multiReceiptsDetectorV1";
|
|
11
11
|
export { PassportV1 } from "./passport/passportV1";
|
|
12
12
|
export { ProofOfAddressV1 } from "./proofOfAddress/proofOfAddressV1";
|
package/src/product/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.us = exports.fr = exports.eu = exports.ResumeV1 = exports.ReceiptV5 = exports.ReceiptV4 = exports.ProofOfAddressV1 = exports.PassportV1 = exports.MultiReceiptsDetectorV1 = exports.
|
|
26
|
+
exports.us = exports.fr = exports.eu = exports.ResumeV1 = exports.ReceiptV5 = exports.ReceiptV4 = exports.ProofOfAddressV1 = exports.PassportV1 = exports.MultiReceiptsDetectorV1 = exports.InvoiceSplitterV1 = exports.InvoiceV4 = exports.InternationalIdV2 = exports.InternationalIdV1 = exports.GeneratedV1 = exports.FinancialDocumentV1 = exports.CustomV1 = exports.CropperV1 = exports.BarcodeReaderV1 = void 0;
|
|
27
27
|
var barcodeReaderV1_1 = require("./barcodeReader/barcodeReaderV1");
|
|
28
28
|
Object.defineProperty(exports, "BarcodeReaderV1", { enumerable: true, get: function () { return barcodeReaderV1_1.BarcodeReaderV1; } });
|
|
29
29
|
var cropperV1_1 = require("./cropper/cropperV1");
|
|
@@ -32,16 +32,16 @@ var customV1_1 = require("./custom/customV1");
|
|
|
32
32
|
Object.defineProperty(exports, "CustomV1", { enumerable: true, get: function () { return customV1_1.CustomV1; } });
|
|
33
33
|
var financialDocumentV1_1 = require("./financialDocument/financialDocumentV1");
|
|
34
34
|
Object.defineProperty(exports, "FinancialDocumentV1", { enumerable: true, get: function () { return financialDocumentV1_1.FinancialDocumentV1; } });
|
|
35
|
-
var
|
|
36
|
-
Object.defineProperty(exports, "
|
|
35
|
+
var generatedV1_1 = require("./generated/generatedV1");
|
|
36
|
+
Object.defineProperty(exports, "GeneratedV1", { enumerable: true, get: function () { return generatedV1_1.GeneratedV1; } });
|
|
37
37
|
var internationalIdV1_1 = require("./internationalId/internationalIdV1");
|
|
38
38
|
Object.defineProperty(exports, "InternationalIdV1", { enumerable: true, get: function () { return internationalIdV1_1.InternationalIdV1; } });
|
|
39
39
|
var internationalIdV2_1 = require("./internationalId/internationalIdV2");
|
|
40
40
|
Object.defineProperty(exports, "InternationalIdV2", { enumerable: true, get: function () { return internationalIdV2_1.InternationalIdV2; } });
|
|
41
|
+
var invoiceV4_1 = require("./invoice/invoiceV4");
|
|
42
|
+
Object.defineProperty(exports, "InvoiceV4", { enumerable: true, get: function () { return invoiceV4_1.InvoiceV4; } });
|
|
41
43
|
var invoiceSplitterV1_1 = require("./invoiceSplitter/invoiceSplitterV1");
|
|
42
44
|
Object.defineProperty(exports, "InvoiceSplitterV1", { enumerable: true, get: function () { return invoiceSplitterV1_1.InvoiceSplitterV1; } });
|
|
43
|
-
var generatedV1_1 = require("./generated/generatedV1");
|
|
44
|
-
Object.defineProperty(exports, "GeneratedV1", { enumerable: true, get: function () { return generatedV1_1.GeneratedV1; } });
|
|
45
45
|
var multiReceiptsDetectorV1_1 = require("./multiReceiptsDetector/multiReceiptsDetectorV1");
|
|
46
46
|
Object.defineProperty(exports, "MultiReceiptsDetectorV1", { enumerable: true, get: function () { return multiReceiptsDetectorV1_1.MultiReceiptsDetectorV1; } });
|
|
47
47
|
var passportV1_1 = require("./passport/passportV1");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * as barcodeReader from "./barcodeReader/internal";
|
|
2
2
|
export * as cropper from "./cropper/internal";
|
|
3
3
|
export * as custom from "./custom/internal";
|
|
4
|
-
export * as generated from "./generated/internal";
|
|
5
4
|
export * as eu from "./eu/internal";
|
|
6
5
|
export * as financialDocument from "./financialDocument/internal";
|
|
7
6
|
export * as fr from "./fr/internal";
|
|
7
|
+
export * as generated from "./generated/internal";
|
|
8
8
|
export * as internationalId from "./internationalId/internal";
|
|
9
9
|
export * as invoice from "./invoice/internal";
|
|
10
10
|
export * as invoiceSplitter from "./invoiceSplitter/internal";
|
package/src/product/internal.js
CHANGED
|
@@ -23,14 +23,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.us = exports.resume = exports.receipt = exports.proofOfAddress = exports.passport = exports.multiReceiptsDetector = exports.invoiceSplitter = exports.invoice = exports.internationalId = exports.
|
|
26
|
+
exports.us = exports.resume = exports.receipt = exports.proofOfAddress = exports.passport = exports.multiReceiptsDetector = exports.invoiceSplitter = exports.invoice = exports.internationalId = exports.generated = exports.fr = exports.financialDocument = exports.eu = exports.custom = exports.cropper = exports.barcodeReader = void 0;
|
|
27
27
|
exports.barcodeReader = __importStar(require("./barcodeReader/internal"));
|
|
28
28
|
exports.cropper = __importStar(require("./cropper/internal"));
|
|
29
29
|
exports.custom = __importStar(require("./custom/internal"));
|
|
30
|
-
exports.generated = __importStar(require("./generated/internal"));
|
|
31
30
|
exports.eu = __importStar(require("./eu/internal"));
|
|
32
31
|
exports.financialDocument = __importStar(require("./financialDocument/internal"));
|
|
33
32
|
exports.fr = __importStar(require("./fr/internal"));
|
|
33
|
+
exports.generated = __importStar(require("./generated/internal"));
|
|
34
34
|
exports.internationalId = __importStar(require("./internationalId/internal"));
|
|
35
35
|
exports.invoice = __importStar(require("./invoice/internal"));
|
|
36
36
|
exports.invoiceSplitter = __importStar(require("./invoiceSplitter/internal"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InternationalIdV2 } from "./internationalIdV2";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternationalIdV2 = void 0;
|
|
4
|
+
var internationalIdV2_1 = require("./internationalIdV2");
|
|
5
|
+
Object.defineProperty(exports, "InternationalIdV2", { enumerable: true, get: function () { return internationalIdV2_1.InternationalIdV2; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prediction, StringDict } from "../../parsing/common";
|
|
2
2
|
import { ClassificationField, DateField, StringField } from "../../parsing/standard";
|
|
3
3
|
/**
|
|
4
|
-
* International ID API version 2.
|
|
4
|
+
* International ID API version 2.1 document data.
|
|
5
5
|
*/
|
|
6
6
|
export declare class InternationalIdV2Document implements Prediction {
|
|
7
7
|
/** The physical address of the document holder. */
|
|
@@ -4,7 +4,7 @@ exports.InternationalIdV2Document = void 0;
|
|
|
4
4
|
const common_1 = require("../../parsing/common");
|
|
5
5
|
const standard_1 = require("../../parsing/standard");
|
|
6
6
|
/**
|
|
7
|
-
* International ID API version 2.
|
|
7
|
+
* International ID API version 2.1 document data.
|
|
8
8
|
*/
|
|
9
9
|
class InternationalIdV2Document {
|
|
10
10
|
constructor(rawPrediction, pageId) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InvoiceV4 } from "./invoiceV4";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceV4 = void 0;
|
|
4
|
+
var invoiceV4_1 = require("./invoiceV4");
|
|
5
|
+
Object.defineProperty(exports, "InvoiceV4", { enumerable: true, get: function () { return invoiceV4_1.InvoiceV4; } });
|
|
@@ -2,7 +2,7 @@ import { Prediction, StringDict } from "../../parsing/common";
|
|
|
2
2
|
import { InvoiceV4LineItem } from "./invoiceV4LineItem";
|
|
3
3
|
import { AmountField, ClassificationField, CompanyRegistrationField, DateField, LocaleField, PaymentDetailsField, StringField, Taxes } from "../../parsing/standard";
|
|
4
4
|
/**
|
|
5
|
-
* Invoice API version 4.
|
|
5
|
+
* Invoice API version 4.7 document data.
|
|
6
6
|
*/
|
|
7
7
|
export declare class InvoiceV4Document implements Prediction {
|
|
8
8
|
/** The customer's address used for billing. */
|
|
@@ -5,7 +5,7 @@ const common_1 = require("../../parsing/common");
|
|
|
5
5
|
const invoiceV4LineItem_1 = require("./invoiceV4LineItem");
|
|
6
6
|
const standard_1 = require("../../parsing/standard");
|
|
7
7
|
/**
|
|
8
|
-
* Invoice API version 4.
|
|
8
|
+
* Invoice API version 4.7 document data.
|
|
9
9
|
*/
|
|
10
10
|
class InvoiceV4Document {
|
|
11
11
|
constructor(rawPrediction, pageId) {
|
|
@@ -126,7 +126,7 @@ class InvoiceV4Document {
|
|
|
126
126
|
const customerCompanyRegistrations = this.customerCompanyRegistrations.join("\n ");
|
|
127
127
|
let lineItemsSummary = "";
|
|
128
128
|
if (this.lineItems && this.lineItems.length > 0) {
|
|
129
|
-
const lineItemsColSizes = [38, 14, 10, 12, 14, 14, 12];
|
|
129
|
+
const lineItemsColSizes = [38, 14, 10, 12, 14, 14, 17, 12];
|
|
130
130
|
lineItemsSummary += "\n" + (0, common_1.lineSeparator)(lineItemsColSizes, "-") + "\n ";
|
|
131
131
|
lineItemsSummary += "| Description ";
|
|
132
132
|
lineItemsSummary += "| Product code ";
|
|
@@ -134,6 +134,7 @@ class InvoiceV4Document {
|
|
|
134
134
|
lineItemsSummary += "| Tax Amount ";
|
|
135
135
|
lineItemsSummary += "| Tax Rate (%) ";
|
|
136
136
|
lineItemsSummary += "| Total Amount ";
|
|
137
|
+
lineItemsSummary += "| Unit of measure ";
|
|
137
138
|
lineItemsSummary += "| Unit Price ";
|
|
138
139
|
lineItemsSummary += "|\n" + (0, common_1.lineSeparator)(lineItemsColSizes, "=");
|
|
139
140
|
lineItemsSummary += this.lineItems.map((item) => "\n " + item.toTableLine() + "\n" + (0, common_1.lineSeparator)(lineItemsColSizes, "-")).join("");
|
|
@@ -17,6 +17,8 @@ export declare class InvoiceV4LineItem {
|
|
|
17
17
|
taxRate: number | undefined;
|
|
18
18
|
/** The item total amount. */
|
|
19
19
|
totalAmount: number | undefined;
|
|
20
|
+
/** The item unit of measure. */
|
|
21
|
+
unitMeasure: string | undefined;
|
|
20
22
|
/** The item unit price. */
|
|
21
23
|
unitPrice: number | undefined;
|
|
22
24
|
/** Confidence score */
|
|
@@ -35,6 +35,7 @@ class InvoiceV4LineItem {
|
|
|
35
35
|
if (prediction["total_amount"] && !isNaN(prediction["total_amount"])) {
|
|
36
36
|
this.totalAmount = +parseFloat(prediction["total_amount"]).toFixed(3);
|
|
37
37
|
}
|
|
38
|
+
this.unitMeasure = prediction["unit_measure"];
|
|
38
39
|
if (prediction["unit_price"] && !isNaN(prediction["unit_price"])) {
|
|
39
40
|
this.unitPrice = +parseFloat(prediction["unit_price"]).toFixed(3);
|
|
40
41
|
}
|
|
@@ -61,6 +62,8 @@ class InvoiceV4LineItem {
|
|
|
61
62
|
printable.taxRate +
|
|
62
63
|
", Total Amount: " +
|
|
63
64
|
printable.totalAmount +
|
|
65
|
+
", Unit of measure: " +
|
|
66
|
+
printable.unitMeasure +
|
|
64
67
|
", Unit Price: " +
|
|
65
68
|
printable.unitPrice);
|
|
66
69
|
}
|
|
@@ -82,6 +85,8 @@ class InvoiceV4LineItem {
|
|
|
82
85
|
" | " +
|
|
83
86
|
printable.totalAmount.padEnd(12) +
|
|
84
87
|
" | " +
|
|
88
|
+
printable.unitMeasure.padEnd(15) +
|
|
89
|
+
" | " +
|
|
85
90
|
printable.unitPrice.padEnd(10) +
|
|
86
91
|
" |");
|
|
87
92
|
}
|
|
@@ -103,6 +108,11 @@ _InvoiceV4LineItem_instances = new WeakSet(), _InvoiceV4LineItem_printableValues
|
|
|
103
108
|
taxAmount: this.taxAmount !== undefined ? (0, standard_1.floatToString)(this.taxAmount) : "",
|
|
104
109
|
taxRate: this.taxRate !== undefined ? (0, standard_1.floatToString)(this.taxRate) : "",
|
|
105
110
|
totalAmount: this.totalAmount !== undefined ? (0, standard_1.floatToString)(this.totalAmount) : "",
|
|
111
|
+
unitMeasure: this.unitMeasure ?
|
|
112
|
+
this.unitMeasure.length <= 15 ?
|
|
113
|
+
this.unitMeasure :
|
|
114
|
+
this.unitMeasure.slice(0, 12) + "..." :
|
|
115
|
+
"",
|
|
106
116
|
unitPrice: this.unitPrice !== undefined ? (0, standard_1.floatToString)(this.unitPrice) : "",
|
|
107
117
|
};
|
|
108
118
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MultiReceiptsDetectorV1 } from "./multiReceiptsDetectorV1";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultiReceiptsDetectorV1 = void 0;
|
|
4
|
+
var multiReceiptsDetectorV1_1 = require("./multiReceiptsDetectorV1");
|
|
5
|
+
Object.defineProperty(exports, "MultiReceiptsDetectorV1", { enumerable: true, get: function () { return multiReceiptsDetectorV1_1.MultiReceiptsDetectorV1; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prediction, StringDict } from "../../parsing/common";
|
|
2
2
|
import { PositionField } from "../../parsing/standard";
|
|
3
3
|
/**
|
|
4
|
-
* Multi Receipts Detector API version 1.
|
|
4
|
+
* Multi Receipts Detector API version 1.1 document data.
|
|
5
5
|
*/
|
|
6
6
|
export declare class MultiReceiptsDetectorV1Document implements Prediction {
|
|
7
7
|
/** Positions of the receipts on the document. */
|
|
@@ -4,7 +4,7 @@ exports.MultiReceiptsDetectorV1Document = void 0;
|
|
|
4
4
|
const common_1 = require("../../parsing/common");
|
|
5
5
|
const standard_1 = require("../../parsing/standard");
|
|
6
6
|
/**
|
|
7
|
-
* Multi Receipts Detector API version 1.
|
|
7
|
+
* Multi Receipts Detector API version 1.1 document data.
|
|
8
8
|
*/
|
|
9
9
|
class MultiReceiptsDetectorV1Document {
|
|
10
10
|
constructor(rawPrediction, pageId) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PassportV1 } from "./passportV1";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PassportV1 = void 0;
|
|
4
|
+
var passportV1_1 = require("./passportV1");
|
|
5
|
+
Object.defineProperty(exports, "PassportV1", { enumerable: true, get: function () { return passportV1_1.PassportV1; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProofOfAddressV1 } from "./proofOfAddressV1";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProofOfAddressV1 = void 0;
|
|
4
|
+
var proofOfAddressV1_1 = require("./proofOfAddressV1");
|
|
5
|
+
Object.defineProperty(exports, "ProofOfAddressV1", { enumerable: true, get: function () { return proofOfAddressV1_1.ProofOfAddressV1; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReceiptV5 } from "./receiptV5";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReceiptV5 = void 0;
|
|
4
|
+
var receiptV5_1 = require("./receiptV5");
|
|
5
|
+
Object.defineProperty(exports, "ReceiptV5", { enumerable: true, get: function () { return receiptV5_1.ReceiptV5; } });
|
|
@@ -2,7 +2,7 @@ import { Prediction, StringDict } from "../../parsing/common";
|
|
|
2
2
|
import { ReceiptV5LineItem } from "./receiptV5LineItem";
|
|
3
3
|
import { AmountField, ClassificationField, CompanyRegistrationField, DateField, LocaleField, StringField, Taxes } from "../../parsing/standard";
|
|
4
4
|
/**
|
|
5
|
-
* Receipt API version 5.
|
|
5
|
+
* Receipt API version 5.3 document data.
|
|
6
6
|
*/
|
|
7
7
|
export declare class ReceiptV5Document implements Prediction {
|
|
8
8
|
/** The purchase category among predefined classes. */
|
|
@@ -5,7 +5,7 @@ const common_1 = require("../../parsing/common");
|
|
|
5
5
|
const receiptV5LineItem_1 = require("./receiptV5LineItem");
|
|
6
6
|
const standard_1 = require("../../parsing/standard");
|
|
7
7
|
/**
|
|
8
|
-
* Receipt API version 5.
|
|
8
|
+
* Receipt API version 5.3 document data.
|
|
9
9
|
*/
|
|
10
10
|
class ReceiptV5Document {
|
|
11
11
|
constructor(rawPrediction, pageId) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResumeV1 } from "./resumeV1";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ResumeV1 } from "./resumeV1";
|
|
2
|
-
export { ResumeV1Document } from "./resumeV1Document";
|
|
3
2
|
export { ResumeV1Certificate } from "./resumeV1Certificate";
|
|
3
|
+
export { ResumeV1Document } from "./resumeV1Document";
|
|
4
4
|
export { ResumeV1Education } from "./resumeV1Education";
|
|
5
5
|
export { ResumeV1Language } from "./resumeV1Language";
|
|
6
6
|
export { ResumeV1ProfessionalExperience } from "./resumeV1ProfessionalExperience";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResumeV1SocialNetworksUrl = exports.ResumeV1ProfessionalExperience = exports.ResumeV1Language = exports.ResumeV1Education = exports.
|
|
3
|
+
exports.ResumeV1SocialNetworksUrl = exports.ResumeV1ProfessionalExperience = exports.ResumeV1Language = exports.ResumeV1Education = exports.ResumeV1Document = exports.ResumeV1Certificate = exports.ResumeV1 = void 0;
|
|
4
4
|
var resumeV1_1 = require("./resumeV1");
|
|
5
5
|
Object.defineProperty(exports, "ResumeV1", { enumerable: true, get: function () { return resumeV1_1.ResumeV1; } });
|
|
6
|
-
var resumeV1Document_1 = require("./resumeV1Document");
|
|
7
|
-
Object.defineProperty(exports, "ResumeV1Document", { enumerable: true, get: function () { return resumeV1Document_1.ResumeV1Document; } });
|
|
8
6
|
var resumeV1Certificate_1 = require("./resumeV1Certificate");
|
|
9
7
|
Object.defineProperty(exports, "ResumeV1Certificate", { enumerable: true, get: function () { return resumeV1Certificate_1.ResumeV1Certificate; } });
|
|
8
|
+
var resumeV1Document_1 = require("./resumeV1Document");
|
|
9
|
+
Object.defineProperty(exports, "ResumeV1Document", { enumerable: true, get: function () { return resumeV1Document_1.ResumeV1Document; } });
|
|
10
10
|
var resumeV1Education_1 = require("./resumeV1Education");
|
|
11
11
|
Object.defineProperty(exports, "ResumeV1Education", { enumerable: true, get: function () { return resumeV1Education_1.ResumeV1Education; } });
|
|
12
12
|
var resumeV1Language_1 = require("./resumeV1Language");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BankCheckV1 } from "./bankCheckV1";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BankCheckV1 = void 0;
|
|
4
|
+
var bankCheckV1_1 = require("./bankCheckV1");
|
|
5
|
+
Object.defineProperty(exports, "BankCheckV1", { enumerable: true, get: function () { return bankCheckV1_1.BankCheckV1; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DriverLicenseV1 } from "./driverLicenseV1";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriverLicenseV1 = void 0;
|
|
4
|
+
var driverLicenseV1_1 = require("./driverLicenseV1");
|
|
5
|
+
Object.defineProperty(exports, "DriverLicenseV1", { enumerable: true, get: function () { return driverLicenseV1_1.DriverLicenseV1; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Inference, StringDict, Page } from "../../../parsing/common";
|
|
2
|
+
import { HealthcareCardV1Document } from "./healthcareCardV1Document";
|
|
3
|
+
/**
|
|
4
|
+
* Healthcare Card API version 1 inference prediction.
|
|
5
|
+
*/
|
|
6
|
+
export declare class HealthcareCardV1 extends Inference {
|
|
7
|
+
/** The endpoint's name. */
|
|
8
|
+
endpointName: string;
|
|
9
|
+
/** The endpoint's version. */
|
|
10
|
+
endpointVersion: string;
|
|
11
|
+
/** The document-level prediction. */
|
|
12
|
+
prediction: HealthcareCardV1Document;
|
|
13
|
+
/** The document's pages. */
|
|
14
|
+
pages: Page<HealthcareCardV1Document>[];
|
|
15
|
+
constructor(rawPrediction: StringDict);
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HealthcareCardV1 = void 0;
|
|
4
|
+
const common_1 = require("../../../parsing/common");
|
|
5
|
+
const healthcareCardV1Document_1 = require("./healthcareCardV1Document");
|
|
6
|
+
/**
|
|
7
|
+
* Healthcare Card API version 1 inference prediction.
|
|
8
|
+
*/
|
|
9
|
+
class HealthcareCardV1 extends common_1.Inference {
|
|
10
|
+
constructor(rawPrediction) {
|
|
11
|
+
super(rawPrediction);
|
|
12
|
+
/** The endpoint's name. */
|
|
13
|
+
this.endpointName = "us_healthcare_cards";
|
|
14
|
+
/** The endpoint's version. */
|
|
15
|
+
this.endpointVersion = "1";
|
|
16
|
+
/** The document's pages. */
|
|
17
|
+
this.pages = [];
|
|
18
|
+
this.prediction = new healthcareCardV1Document_1.HealthcareCardV1Document(rawPrediction["prediction"]);
|
|
19
|
+
rawPrediction["pages"].forEach((page) => {
|
|
20
|
+
if (page.prediction !== undefined && page.prediction !== null &&
|
|
21
|
+
Object.keys(page.prediction).length > 0) {
|
|
22
|
+
this.pages.push(new common_1.Page(healthcareCardV1Document_1.HealthcareCardV1Document, page, page["id"], page["orientation"]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.HealthcareCardV1 = HealthcareCardV1;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* Is a fixed amount for a covered service.
|
|
5
|
+
*/
|
|
6
|
+
export declare class HealthcareCardV1Copay {
|
|
7
|
+
#private;
|
|
8
|
+
/** The price of service. */
|
|
9
|
+
serviceFees: number | undefined;
|
|
10
|
+
/** The name of service of the copay. */
|
|
11
|
+
serviceName: 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,66 @@
|
|
|
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 _HealthcareCardV1Copay_instances, _HealthcareCardV1Copay_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.HealthcareCardV1Copay = void 0;
|
|
10
|
+
const standard_1 = require("../../../parsing/standard");
|
|
11
|
+
/**
|
|
12
|
+
* Is a fixed amount for a covered service.
|
|
13
|
+
*/
|
|
14
|
+
class HealthcareCardV1Copay {
|
|
15
|
+
constructor({ prediction = {} }) {
|
|
16
|
+
_HealthcareCardV1Copay_instances.add(this);
|
|
17
|
+
/** Confidence score */
|
|
18
|
+
this.confidence = 0.0;
|
|
19
|
+
/**
|
|
20
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
|
+
* the field in the document.
|
|
22
|
+
*/
|
|
23
|
+
this.polygon = [];
|
|
24
|
+
if (prediction["service_fees"] && !isNaN(prediction["service_fees"])) {
|
|
25
|
+
this.serviceFees = +parseFloat(prediction["service_fees"]).toFixed(3);
|
|
26
|
+
}
|
|
27
|
+
this.serviceName = prediction["service_name"];
|
|
28
|
+
this.pageId = prediction["page_id"];
|
|
29
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
30
|
+
if (prediction["polygon"]) {
|
|
31
|
+
this.polygon = prediction.polygon;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Default string representation.
|
|
36
|
+
*/
|
|
37
|
+
toString() {
|
|
38
|
+
const printable = __classPrivateFieldGet(this, _HealthcareCardV1Copay_instances, "m", _HealthcareCardV1Copay_printableValues).call(this);
|
|
39
|
+
return ("Service Fees: " +
|
|
40
|
+
printable.serviceFees +
|
|
41
|
+
", Service Name: " +
|
|
42
|
+
printable.serviceName);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
46
|
+
*/
|
|
47
|
+
toTableLine() {
|
|
48
|
+
const printable = __classPrivateFieldGet(this, _HealthcareCardV1Copay_instances, "m", _HealthcareCardV1Copay_printableValues).call(this);
|
|
49
|
+
return ("| " +
|
|
50
|
+
printable.serviceFees.padEnd(12) +
|
|
51
|
+
" | " +
|
|
52
|
+
printable.serviceName.padEnd(12) +
|
|
53
|
+
" |");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.HealthcareCardV1Copay = HealthcareCardV1Copay;
|
|
57
|
+
_HealthcareCardV1Copay_instances = new WeakSet(), _HealthcareCardV1Copay_printableValues = function _HealthcareCardV1Copay_printableValues() {
|
|
58
|
+
return {
|
|
59
|
+
serviceFees: this.serviceFees !== undefined ? (0, standard_1.floatToString)(this.serviceFees) : "",
|
|
60
|
+
serviceName: this.serviceName ?
|
|
61
|
+
this.serviceName.length <= 12 ?
|
|
62
|
+
this.serviceName :
|
|
63
|
+
this.serviceName.slice(0, 9) + "..." :
|
|
64
|
+
"",
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Prediction, StringDict } from "../../../parsing/common";
|
|
2
|
+
import { HealthcareCardV1Copay } from "./healthcareCardV1Copay";
|
|
3
|
+
import { DateField, StringField } from "../../../parsing/standard";
|
|
4
|
+
/**
|
|
5
|
+
* Healthcare Card API version 1.0 document data.
|
|
6
|
+
*/
|
|
7
|
+
export declare class HealthcareCardV1Document implements Prediction {
|
|
8
|
+
/** The name of the company that provides the healthcare plan. */
|
|
9
|
+
companyName: StringField;
|
|
10
|
+
/** Is a fixed amount for a covered service. */
|
|
11
|
+
copays: HealthcareCardV1Copay[];
|
|
12
|
+
/** The list of dependents covered by the healthcare plan. */
|
|
13
|
+
dependents: StringField[];
|
|
14
|
+
/** The date when the member enrolled in the healthcare plan. */
|
|
15
|
+
enrollmentDate: DateField;
|
|
16
|
+
/** The group number associated with the healthcare plan. */
|
|
17
|
+
groupNumber: StringField;
|
|
18
|
+
/** The organization that issued the healthcare plan. */
|
|
19
|
+
issuer80840: StringField;
|
|
20
|
+
/** The unique identifier for the member in the healthcare system. */
|
|
21
|
+
memberId: StringField;
|
|
22
|
+
/** The name of the member covered by the healthcare plan. */
|
|
23
|
+
memberName: StringField;
|
|
24
|
+
/** The unique identifier for the payer in the healthcare system. */
|
|
25
|
+
payerId: StringField;
|
|
26
|
+
/** The BIN number for prescription drug coverage. */
|
|
27
|
+
rxBin: StringField;
|
|
28
|
+
/** The group number for prescription drug coverage. */
|
|
29
|
+
rxGrp: StringField;
|
|
30
|
+
/** The PCN number for prescription drug coverage. */
|
|
31
|
+
rxPcn: StringField;
|
|
32
|
+
constructor(rawPrediction: StringDict, pageId?: number);
|
|
33
|
+
/**
|
|
34
|
+
* Default string representation.
|
|
35
|
+
*/
|
|
36
|
+
toString(): string;
|
|
37
|
+
}
|