mindee 4.29.0-rc6 → 4.30.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 +19 -24
- package/package.json +1 -1
- package/src/clientV2.d.ts +8 -1
- package/src/geometry/boundingBox.d.ts +4 -1
- package/src/geometry/boundingBox.js +9 -1
- package/src/geometry/boundingBoxUtils.js +1 -6
- package/src/geometry/index.js +2 -1
- package/src/geometry/polygon.d.ts +22 -0
- package/src/geometry/polygon.js +36 -0
- package/src/geometry/polygonUtils.d.ts +8 -9
- package/src/http/mindeeApiV2.js +11 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +3 -1
- package/src/parsing/custom/listField.d.ts +2 -2
- package/src/parsing/custom/listField.js +1 -6
- package/src/parsing/standard/field.js +1 -1
- package/src/parsing/v2/field/fieldFactory.d.ts +1 -1
- package/src/parsing/v2/field/inferenceFields.d.ts +3 -0
- package/src/parsing/v2/field/inferenceFields.js +30 -0
- package/src/parsing/v2/field/listField.d.ts +8 -0
- package/src/parsing/v2/field/listField.js +31 -0
- package/src/parsing/v2/field/objectField.d.ts +2 -0
- package/src/parsing/v2/field/objectField.js +12 -0
- package/src/parsing/v2/field/simpleField.d.ts +12 -0
- package/src/parsing/v2/field/simpleField.js +27 -0
- package/src/parsing/v2/index.d.ts +1 -1
- package/src/parsing/v2/index.js +3 -3
- package/src/parsing/v2/inference.d.ts +5 -0
- package/src/parsing/v2/inference.js +4 -6
- package/src/parsing/v2/inferenceActiveOptions.d.ts +21 -0
- package/src/parsing/v2/inferenceActiveOptions.js +20 -0
- package/src/parsing/v2/inferenceModel.d.ts +1 -0
- package/src/parsing/v2/inferenceModel.js +5 -0
- package/src/parsing/v2/inferenceResult.d.ts +4 -4
- package/src/parsing/v2/inferenceResult.js +6 -14
- package/src/parsing/v2/rawText.d.ts +4 -9
- package/src/parsing/v2/rawText.js +5 -5
- package/src/parsing/v2/rawTextPage.d.ts +11 -0
- package/src/parsing/v2/rawTextPage.js +12 -0
- package/src/product/billOfLading/billOfLadingV1Carrier.js +2 -1
- package/src/product/billOfLading/billOfLadingV1CarrierItem.js +2 -1
- package/src/product/billOfLading/billOfLadingV1Consignee.js +2 -1
- package/src/product/billOfLading/billOfLadingV1NotifyParty.js +2 -1
- package/src/product/billOfLading/billOfLadingV1Shipper.js +2 -1
- package/src/product/financialDocument/financialDocumentV1LineItem.js +2 -1
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.js +2 -1
- package/src/product/fr/energyBill/energyBillV1EnergyConsumer.js +2 -1
- package/src/product/fr/energyBill/energyBillV1EnergySupplier.js +2 -1
- package/src/product/fr/energyBill/energyBillV1EnergyUsage.js +2 -1
- package/src/product/fr/energyBill/energyBillV1MeterDetail.js +2 -1
- package/src/product/fr/energyBill/energyBillV1Subscription.js +2 -1
- package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.js +2 -1
- package/src/product/fr/payslip/payslipV2BankAccountDetail.js +2 -1
- package/src/product/fr/payslip/payslipV2Employee.js +2 -1
- package/src/product/fr/payslip/payslipV2Employer.js +2 -1
- package/src/product/fr/payslip/payslipV2Employment.js +2 -1
- package/src/product/fr/payslip/payslipV2PayDetail.js +2 -1
- package/src/product/fr/payslip/payslipV2PayPeriod.js +2 -1
- package/src/product/fr/payslip/payslipV2Pto.js +2 -1
- package/src/product/fr/payslip/payslipV2SalaryDetail.js +2 -1
- package/src/product/fr/payslip/payslipV3BankAccountDetail.js +2 -1
- package/src/product/fr/payslip/payslipV3Employee.js +2 -1
- package/src/product/fr/payslip/payslipV3Employer.js +2 -1
- package/src/product/fr/payslip/payslipV3Employment.js +2 -1
- package/src/product/fr/payslip/payslipV3PaidTimeOff.js +2 -1
- package/src/product/fr/payslip/payslipV3PayDetail.js +2 -1
- package/src/product/fr/payslip/payslipV3PayPeriod.js +2 -1
- package/src/product/fr/payslip/payslipV3SalaryDetail.js +2 -1
- package/src/product/invoice/invoiceV4LineItem.js +2 -1
- package/src/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.js +2 -1
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.js +2 -1
- package/src/product/receipt/receiptV5LineItem.js +2 -1
- package/src/product/resume/resumeV1Certificate.js +2 -1
- package/src/product/resume/resumeV1Education.js +2 -1
- package/src/product/resume/resumeV1Language.js +2 -1
- package/src/product/resume/resumeV1ProfessionalExperience.js +2 -1
- package/src/product/resume/resumeV1SocialNetworksUrl.js +2 -1
- package/src/product/us/healthcareCard/healthcareCardV1Copay.js +2 -1
- package/src/product/us/usMail/usMailV2RecipientAddress.js +2 -1
- package/src/product/us/usMail/usMailV2SenderAddress.js +2 -1
- package/src/product/us/usMail/usMailV3RecipientAddress.js +2 -1
- package/src/product/us/usMail/usMailV3SenderAddress.js +2 -1
- package/src/parsing/v2/inferenceResultOptions.d.ts +0 -9
- package/src/parsing/v2/inferenceResultOptions.js +0 -10
|
@@ -8,6 +8,33 @@ class SimpleField extends baseField_1.BaseField {
|
|
|
8
8
|
this.value =
|
|
9
9
|
serverResponse["value"] !== undefined ? serverResponse["value"] : null;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves a string field value as a string.
|
|
13
|
+
*/
|
|
14
|
+
get stringValue() {
|
|
15
|
+
if (this.value !== null && typeof this.value !== "string") {
|
|
16
|
+
throw new Error("Value is not a string");
|
|
17
|
+
}
|
|
18
|
+
return this.value;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a number field value as a number.
|
|
22
|
+
*/
|
|
23
|
+
get numberValue() {
|
|
24
|
+
if (this.value !== null && typeof this.value !== "number") {
|
|
25
|
+
throw new Error("Value is not a number");
|
|
26
|
+
}
|
|
27
|
+
return this.value;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a boolean field value as a boolean.
|
|
31
|
+
*/
|
|
32
|
+
get booleanValue() {
|
|
33
|
+
if (this.value !== null && typeof this.value !== "boolean") {
|
|
34
|
+
throw new Error("Value is not a boolean");
|
|
35
|
+
}
|
|
36
|
+
return this.value;
|
|
37
|
+
}
|
|
11
38
|
toString() {
|
|
12
39
|
if (this.value === null) {
|
|
13
40
|
return "";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { CommonResponse } from "./commonResponse";
|
|
2
2
|
export { ErrorResponse } from "./errorResponse";
|
|
3
3
|
export { Inference } from "./inference";
|
|
4
|
+
export { InferenceActiveOptions } from "./inferenceActiveOptions";
|
|
4
5
|
export { InferenceFile } from "./inferenceFile";
|
|
5
6
|
export { InferenceModel } from "./inferenceModel";
|
|
6
|
-
export { InferenceResultOptions } from "./inferenceResultOptions";
|
|
7
7
|
export { InferenceResponse } from "./inferenceResponse";
|
|
8
8
|
export { InferenceResult } from "./inferenceResult";
|
|
9
9
|
export { Job } from "./job";
|
package/src/parsing/v2/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JobWebhook = exports.RawText = exports.JobResponse = exports.Job = exports.InferenceResult = exports.InferenceResponse = exports.
|
|
3
|
+
exports.JobWebhook = exports.RawText = exports.JobResponse = exports.Job = exports.InferenceResult = exports.InferenceResponse = exports.InferenceModel = exports.InferenceFile = exports.InferenceActiveOptions = exports.Inference = exports.ErrorResponse = exports.CommonResponse = void 0;
|
|
4
4
|
var commonResponse_1 = require("./commonResponse");
|
|
5
5
|
Object.defineProperty(exports, "CommonResponse", { enumerable: true, get: function () { return commonResponse_1.CommonResponse; } });
|
|
6
6
|
var errorResponse_1 = require("./errorResponse");
|
|
7
7
|
Object.defineProperty(exports, "ErrorResponse", { enumerable: true, get: function () { return errorResponse_1.ErrorResponse; } });
|
|
8
8
|
var inference_1 = require("./inference");
|
|
9
9
|
Object.defineProperty(exports, "Inference", { enumerable: true, get: function () { return inference_1.Inference; } });
|
|
10
|
+
var inferenceActiveOptions_1 = require("./inferenceActiveOptions");
|
|
11
|
+
Object.defineProperty(exports, "InferenceActiveOptions", { enumerable: true, get: function () { return inferenceActiveOptions_1.InferenceActiveOptions; } });
|
|
10
12
|
var inferenceFile_1 = require("./inferenceFile");
|
|
11
13
|
Object.defineProperty(exports, "InferenceFile", { enumerable: true, get: function () { return inferenceFile_1.InferenceFile; } });
|
|
12
14
|
var inferenceModel_1 = require("./inferenceModel");
|
|
13
15
|
Object.defineProperty(exports, "InferenceModel", { enumerable: true, get: function () { return inferenceModel_1.InferenceModel; } });
|
|
14
|
-
var inferenceResultOptions_1 = require("./inferenceResultOptions");
|
|
15
|
-
Object.defineProperty(exports, "InferenceResultOptions", { enumerable: true, get: function () { return inferenceResultOptions_1.InferenceResultOptions; } });
|
|
16
16
|
var inferenceResponse_1 = require("./inferenceResponse");
|
|
17
17
|
Object.defineProperty(exports, "InferenceResponse", { enumerable: true, get: function () { return inferenceResponse_1.InferenceResponse; } });
|
|
18
18
|
var inferenceResult_1 = require("./inferenceResult");
|
|
@@ -2,6 +2,7 @@ import { StringDict } from "../common";
|
|
|
2
2
|
import { InferenceModel } from "./inferenceModel";
|
|
3
3
|
import { InferenceResult } from "./inferenceResult";
|
|
4
4
|
import { InferenceFile } from "./inferenceFile";
|
|
5
|
+
import { InferenceActiveOptions } from "./inferenceActiveOptions";
|
|
5
6
|
export declare class Inference {
|
|
6
7
|
/**
|
|
7
8
|
* Model info for the inference.
|
|
@@ -19,6 +20,10 @@ export declare class Inference {
|
|
|
19
20
|
* ID of the inference.
|
|
20
21
|
*/
|
|
21
22
|
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Active options for the inference.
|
|
25
|
+
*/
|
|
26
|
+
activeOptions: InferenceActiveOptions;
|
|
22
27
|
constructor(serverResponse: StringDict);
|
|
23
28
|
toString(): string;
|
|
24
29
|
}
|
|
@@ -4,22 +4,20 @@ exports.Inference = void 0;
|
|
|
4
4
|
const inferenceModel_1 = require("./inferenceModel");
|
|
5
5
|
const inferenceResult_1 = require("./inferenceResult");
|
|
6
6
|
const inferenceFile_1 = require("./inferenceFile");
|
|
7
|
+
const inferenceActiveOptions_1 = require("./inferenceActiveOptions");
|
|
7
8
|
class Inference {
|
|
8
9
|
constructor(serverResponse) {
|
|
9
10
|
this.model = new inferenceModel_1.InferenceModel(serverResponse["model"]);
|
|
10
11
|
this.file = new inferenceFile_1.InferenceFile(serverResponse["file"]);
|
|
11
12
|
this.result = new inferenceResult_1.InferenceResult(serverResponse["result"]);
|
|
12
|
-
|
|
13
|
-
this.id = serverResponse["id"];
|
|
14
|
-
}
|
|
13
|
+
this.activeOptions = new inferenceActiveOptions_1.InferenceActiveOptions(serverResponse["active_options"]);
|
|
15
14
|
}
|
|
16
15
|
toString() {
|
|
17
16
|
return ("Inference\n" +
|
|
18
17
|
"#########\n" +
|
|
19
|
-
"
|
|
20
|
-
"=====\n" +
|
|
21
|
-
`:ID: ${this.model.id}\n\n` +
|
|
18
|
+
this.model.toString() + "\n" +
|
|
22
19
|
this.file.toString() + "\n" +
|
|
20
|
+
this.activeOptions.toString() + "\n" +
|
|
23
21
|
this.result + "\n");
|
|
24
22
|
}
|
|
25
23
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StringDict } from "../common";
|
|
2
|
+
export declare class InferenceActiveOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the RAG feature was activated.
|
|
5
|
+
*/
|
|
6
|
+
rag: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the Raw Text feature was activated.
|
|
9
|
+
*/
|
|
10
|
+
rawText: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the polygon feature was activated.
|
|
13
|
+
*/
|
|
14
|
+
polygon: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the confidence feature was activated.
|
|
17
|
+
*/
|
|
18
|
+
confidence: boolean;
|
|
19
|
+
constructor(serverResponse: StringDict);
|
|
20
|
+
toString(): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InferenceActiveOptions = void 0;
|
|
4
|
+
class InferenceActiveOptions {
|
|
5
|
+
constructor(serverResponse) {
|
|
6
|
+
this.rag = serverResponse["rag"];
|
|
7
|
+
this.rawText = serverResponse["raw_text"];
|
|
8
|
+
this.polygon = serverResponse["polygon"];
|
|
9
|
+
this.confidence = serverResponse["confidence"];
|
|
10
|
+
}
|
|
11
|
+
toString() {
|
|
12
|
+
return "Active Options\n" +
|
|
13
|
+
"==============\n" +
|
|
14
|
+
`:Raw Text: ${this.rawText ? "True" : "False"}\n` +
|
|
15
|
+
`:Polygon: ${this.polygon ? "True" : "False"}\n` +
|
|
16
|
+
`:Confidence: ${this.confidence ? "True" : "False"}\n` +
|
|
17
|
+
`:RAG: ${this.rag ? "True" : "False"}\n`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.InferenceActiveOptions = InferenceActiveOptions;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { InferenceFields } from "./field
|
|
2
|
-
import { InferenceResultOptions } from "./inferenceResultOptions";
|
|
1
|
+
import { InferenceFields } from "./field";
|
|
3
2
|
import { StringDict } from "../common";
|
|
3
|
+
import { RawText } from "./rawText";
|
|
4
4
|
export declare class InferenceResult {
|
|
5
5
|
/**
|
|
6
6
|
* Fields contained in the inference.
|
|
7
7
|
*/
|
|
8
8
|
fields: InferenceFields;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Raw text extracted from all pages.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
rawText?: RawText;
|
|
13
13
|
constructor(serverResponse: StringDict);
|
|
14
14
|
toString(): string;
|
|
15
15
|
}
|
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InferenceResult = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const field_1 = require("./field");
|
|
5
|
+
const rawText_1 = require("./rawText");
|
|
6
6
|
class InferenceResult {
|
|
7
7
|
constructor(serverResponse) {
|
|
8
|
-
this.fields = new
|
|
9
|
-
if (serverResponse["
|
|
10
|
-
this.
|
|
8
|
+
this.fields = new field_1.InferenceFields(serverResponse["fields"]);
|
|
9
|
+
if (serverResponse["raw_text"]) {
|
|
10
|
+
this.rawText = new rawText_1.RawText(serverResponse["raw_text"]);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
toString() {
|
|
14
|
-
|
|
15
|
-
"Fields",
|
|
16
|
-
"======",
|
|
17
|
-
this.fields.toString(),
|
|
18
|
-
];
|
|
19
|
-
if (this.options) {
|
|
20
|
-
parts.push("Options", "=======", this.options.toString());
|
|
21
|
-
}
|
|
22
|
-
return parts.join("\n");
|
|
14
|
+
return `Fields\n======\n${this.fields}`;
|
|
23
15
|
}
|
|
24
16
|
}
|
|
25
17
|
exports.InferenceResult = InferenceResult;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { StringDict } from "../common";
|
|
2
|
+
import { RawTextPage } from "./rawTextPage";
|
|
2
3
|
export declare class RawText {
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
page: number;
|
|
7
|
-
/**
|
|
8
|
-
* The text content found on the page.
|
|
9
|
-
*/
|
|
10
|
-
content: string;
|
|
11
|
-
/**
|
|
12
|
-
* @param serverResponse JSON response from the server.
|
|
5
|
+
* List of pages with their extracted text content.
|
|
13
6
|
*/
|
|
7
|
+
pages: Array<RawTextPage>;
|
|
14
8
|
constructor(serverResponse: StringDict);
|
|
9
|
+
toString(): string;
|
|
15
10
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RawText = void 0;
|
|
4
|
+
const rawTextPage_1 = require("./rawTextPage");
|
|
4
5
|
class RawText {
|
|
5
|
-
/**
|
|
6
|
-
* @param serverResponse JSON response from the server.
|
|
7
|
-
*/
|
|
8
6
|
constructor(serverResponse) {
|
|
9
|
-
this.
|
|
10
|
-
|
|
7
|
+
this.pages = serverResponse["pages"] ? serverResponse["pages"].map((rawTextPage) => new rawTextPage_1.RawTextPage(rawTextPage)) : [];
|
|
8
|
+
}
|
|
9
|
+
toString() {
|
|
10
|
+
return this.pages.map(page => page.toString()).join("\n\n");
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.RawText = RawText;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StringDict } from "../common";
|
|
2
|
+
export declare class RawTextPage {
|
|
3
|
+
/**
|
|
4
|
+
* The text content found on the page.
|
|
5
|
+
*/
|
|
6
|
+
content: string;
|
|
7
|
+
/**
|
|
8
|
+
* @param serverResponse JSON response from the server.
|
|
9
|
+
*/
|
|
10
|
+
constructor(serverResponse: StringDict);
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RawTextPage = void 0;
|
|
4
|
+
class RawTextPage {
|
|
5
|
+
/**
|
|
6
|
+
* @param serverResponse JSON response from the server.
|
|
7
|
+
*/
|
|
8
|
+
constructor(serverResponse) {
|
|
9
|
+
this.content = serverResponse["content"];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.RawTextPage = RawTextPage;
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _BillOfLadingV1Carrier_instances, _BillOfLadingV1Carrier_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BillOfLadingV1Carrier = void 0;
|
|
10
|
+
const geometry_1 = require("../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* The shipping company responsible for transporting the goods.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class BillOfLadingV1Carrier {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.name = prediction["name"];
|
|
24
25
|
this.professionalNumber = prediction["professional_number"];
|
|
25
26
|
this.scac = prediction["scac"];
|
|
@@ -8,6 +8,7 @@ var _BillOfLadingV1CarrierItem_instances, _BillOfLadingV1CarrierItem_printableVa
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BillOfLadingV1CarrierItem = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The goods being shipped.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class BillOfLadingV1CarrierItem {
|
|
|
20
21
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
22
|
* the field in the document.
|
|
22
23
|
*/
|
|
23
|
-
this.polygon =
|
|
24
|
+
this.polygon = new geometry_1.Polygon();
|
|
24
25
|
this.description = prediction["description"];
|
|
25
26
|
if (prediction["gross_weight"] !== undefined &&
|
|
26
27
|
prediction["gross_weight"] !== null &&
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _BillOfLadingV1Consignee_instances, _BillOfLadingV1Consignee_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BillOfLadingV1Consignee = void 0;
|
|
10
|
+
const geometry_1 = require("../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* The party to whom the goods are being shipped.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class BillOfLadingV1Consignee {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.address = prediction["address"];
|
|
24
25
|
this.email = prediction["email"];
|
|
25
26
|
this.name = prediction["name"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _BillOfLadingV1NotifyParty_instances, _BillOfLadingV1NotifyParty_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BillOfLadingV1NotifyParty = void 0;
|
|
10
|
+
const geometry_1 = require("../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* The party to be notified of the arrival of the goods.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class BillOfLadingV1NotifyParty {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.address = prediction["address"];
|
|
24
25
|
this.email = prediction["email"];
|
|
25
26
|
this.name = prediction["name"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _BillOfLadingV1Shipper_instances, _BillOfLadingV1Shipper_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BillOfLadingV1Shipper = void 0;
|
|
10
|
+
const geometry_1 = require("../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* The party responsible for shipping the goods.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class BillOfLadingV1Shipper {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.address = prediction["address"];
|
|
24
25
|
this.email = prediction["email"];
|
|
25
26
|
this.name = prediction["name"];
|
|
@@ -8,6 +8,7 @@ var _FinancialDocumentV1LineItem_instances, _FinancialDocumentV1LineItem_printab
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.FinancialDocumentV1LineItem = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* List of line item present on the document.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class FinancialDocumentV1LineItem {
|
|
|
20
21
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
22
|
* the field in the document.
|
|
22
23
|
*/
|
|
23
|
-
this.polygon =
|
|
24
|
+
this.polygon = new geometry_1.Polygon();
|
|
24
25
|
this.description = prediction["description"];
|
|
25
26
|
this.productCode = prediction["product_code"];
|
|
26
27
|
if (prediction["quantity"] !== undefined &&
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _BankAccountDetailsV2Bban_instances, _BankAccountDetailsV2Bban_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BankAccountDetailsV2Bban = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Full extraction of BBAN, including: branch code, bank code, account and key.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class BankAccountDetailsV2Bban {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.bbanBankCode = prediction["bban_bank_code"];
|
|
24
25
|
this.bbanBranchCode = prediction["bban_branch_code"];
|
|
25
26
|
this.bbanKey = prediction["bban_key"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _EnergyBillV1EnergyConsumer_instances, _EnergyBillV1EnergyConsumer_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.EnergyBillV1EnergyConsumer = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* The entity that consumes the energy.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class EnergyBillV1EnergyConsumer {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.address = prediction["address"];
|
|
24
25
|
this.name = prediction["name"];
|
|
25
26
|
this.pageId = prediction["page_id"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _EnergyBillV1EnergySupplier_instances, _EnergyBillV1EnergySupplier_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.EnergyBillV1EnergySupplier = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* The company that supplies the energy.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class EnergyBillV1EnergySupplier {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.address = prediction["address"];
|
|
24
25
|
this.name = prediction["name"];
|
|
25
26
|
this.pageId = prediction["page_id"];
|
|
@@ -8,6 +8,7 @@ var _EnergyBillV1EnergyUsage_instances, _EnergyBillV1EnergyUsage_printableValues
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.EnergyBillV1EnergyUsage = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Details of energy consumption.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class EnergyBillV1EnergyUsage {
|
|
|
20
21
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
22
|
* the field in the document.
|
|
22
23
|
*/
|
|
23
|
-
this.polygon =
|
|
24
|
+
this.polygon = new geometry_1.Polygon();
|
|
24
25
|
if (prediction["consumption"] !== undefined &&
|
|
25
26
|
prediction["consumption"] !== null &&
|
|
26
27
|
!isNaN(prediction["consumption"])) {
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _EnergyBillV1MeterDetail_instances, _EnergyBillV1MeterDetail_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.EnergyBillV1MeterDetail = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the energy meter.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class EnergyBillV1MeterDetail {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.meterNumber = prediction["meter_number"];
|
|
24
25
|
this.meterType = prediction["meter_type"];
|
|
25
26
|
this.unit = prediction["unit"];
|
|
@@ -8,6 +8,7 @@ var _EnergyBillV1Subscription_instances, _EnergyBillV1Subscription_printableValu
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.EnergyBillV1Subscription = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The subscription details fee for the energy service.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class EnergyBillV1Subscription {
|
|
|
20
21
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
22
|
* the field in the document.
|
|
22
23
|
*/
|
|
23
|
-
this.polygon =
|
|
24
|
+
this.polygon = new geometry_1.Polygon();
|
|
24
25
|
this.description = prediction["description"];
|
|
25
26
|
this.endDate = prediction["end_date"];
|
|
26
27
|
this.startDate = prediction["start_date"];
|
|
@@ -8,6 +8,7 @@ var _EnergyBillV1TaxesAndContribution_instances, _EnergyBillV1TaxesAndContributi
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.EnergyBillV1TaxesAndContribution = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Details of Taxes and Contributions.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class EnergyBillV1TaxesAndContribution {
|
|
|
20
21
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
22
|
* the field in the document.
|
|
22
23
|
*/
|
|
23
|
-
this.polygon =
|
|
24
|
+
this.polygon = new geometry_1.Polygon();
|
|
24
25
|
this.description = prediction["description"];
|
|
25
26
|
this.endDate = prediction["end_date"];
|
|
26
27
|
this.startDate = prediction["start_date"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _PayslipV2BankAccountDetail_instances, _PayslipV2BankAccountDetail_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV2BankAccountDetail = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the employee's bank account.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class PayslipV2BankAccountDetail {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.bankName = prediction["bank_name"];
|
|
24
25
|
this.iban = prediction["iban"];
|
|
25
26
|
this.swift = prediction["swift"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _PayslipV2Employee_instances, _PayslipV2Employee_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV2Employee = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the employee.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class PayslipV2Employee {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.address = prediction["address"];
|
|
24
25
|
this.dateOfBirth = prediction["date_of_birth"];
|
|
25
26
|
this.firstName = prediction["first_name"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _PayslipV2Employer_instances, _PayslipV2Employer_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV2Employer = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the employer.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class PayslipV2Employer {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.address = prediction["address"];
|
|
24
25
|
this.companyId = prediction["company_id"];
|
|
25
26
|
this.companySite = prediction["company_site"];
|
|
@@ -8,6 +8,7 @@ var _PayslipV2Employment_instances, _PayslipV2Employment_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV2Employment = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Information about the employment.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class PayslipV2Employment {
|
|
|
20
21
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
22
|
* the field in the document.
|
|
22
23
|
*/
|
|
23
|
-
this.polygon =
|
|
24
|
+
this.polygon = new geometry_1.Polygon();
|
|
24
25
|
this.category = prediction["category"];
|
|
25
26
|
if (prediction["coefficient"] !== undefined &&
|
|
26
27
|
prediction["coefficient"] !== null &&
|
|
@@ -8,6 +8,7 @@ var _PayslipV2PayDetail_instances, _PayslipV2PayDetail_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV2PayDetail = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Detailed information about the pay.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class PayslipV2PayDetail {
|
|
|
20
21
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
22
|
* the field in the document.
|
|
22
23
|
*/
|
|
23
|
-
this.polygon =
|
|
24
|
+
this.polygon = new geometry_1.Polygon();
|
|
24
25
|
if (prediction["gross_salary"] !== undefined &&
|
|
25
26
|
prediction["gross_salary"] !== null &&
|
|
26
27
|
!isNaN(prediction["gross_salary"])) {
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _PayslipV2PayPeriod_instances, _PayslipV2PayPeriod_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV2PayPeriod = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the pay period.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class PayslipV2PayPeriod {
|
|
|
19
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
21
|
* the field in the document.
|
|
21
22
|
*/
|
|
22
|
-
this.polygon =
|
|
23
|
+
this.polygon = new geometry_1.Polygon();
|
|
23
24
|
this.endDate = prediction["end_date"];
|
|
24
25
|
this.month = prediction["month"];
|
|
25
26
|
this.paymentDate = prediction["payment_date"];
|