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,7 @@ var _PayslipV2Pto_instances, _PayslipV2Pto_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV2Pto = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Information about paid time off.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class PayslipV2Pto {
|
|
|
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["accrued_this_period"] !== undefined &&
|
|
25
26
|
prediction["accrued_this_period"] !== null &&
|
|
26
27
|
!isNaN(prediction["accrued_this_period"])) {
|
|
@@ -8,6 +8,7 @@ var _PayslipV2SalaryDetail_instances, _PayslipV2SalaryDetail_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV2SalaryDetail = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Detailed information about the earnings.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class PayslipV2SalaryDetail {
|
|
|
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["amount"] !== undefined &&
|
|
25
26
|
prediction["amount"] !== null &&
|
|
26
27
|
!isNaN(prediction["amount"])) {
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _PayslipV3BankAccountDetail_instances, _PayslipV3BankAccountDetail_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV3BankAccountDetail = 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 PayslipV3BankAccountDetail {
|
|
|
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 _PayslipV3Employee_instances, _PayslipV3Employee_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV3Employee = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the employee.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class PayslipV3Employee {
|
|
|
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 _PayslipV3Employer_instances, _PayslipV3Employer_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV3Employer = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the employer.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class PayslipV3Employer {
|
|
|
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"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _PayslipV3Employment_instances, _PayslipV3Employment_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV3Employment = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the employment.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class PayslipV3Employment {
|
|
|
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.category = prediction["category"];
|
|
24
25
|
this.coefficient = prediction["coefficient"];
|
|
25
26
|
this.collectiveAgreement = prediction["collective_agreement"];
|
|
@@ -8,6 +8,7 @@ var _PayslipV3PaidTimeOff_instances, _PayslipV3PaidTimeOff_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV3PaidTimeOff = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Information about paid time off.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class PayslipV3PaidTimeOff {
|
|
|
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["accrued"] !== undefined &&
|
|
25
26
|
prediction["accrued"] !== null &&
|
|
26
27
|
!isNaN(prediction["accrued"])) {
|
|
@@ -8,6 +8,7 @@ var _PayslipV3PayDetail_instances, _PayslipV3PayDetail_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV3PayDetail = 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 PayslipV3PayDetail {
|
|
|
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 _PayslipV3PayPeriod_instances, _PayslipV3PayPeriod_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV3PayPeriod = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* Information about the pay period.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class PayslipV3PayPeriod {
|
|
|
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"];
|
|
@@ -8,6 +8,7 @@ var _PayslipV3SalaryDetail_instances, _PayslipV3SalaryDetail_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PayslipV3SalaryDetail = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Detailed information about the earnings.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class PayslipV3SalaryDetail {
|
|
|
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["amount"] !== undefined &&
|
|
25
26
|
prediction["amount"] !== null &&
|
|
26
27
|
!isNaN(prediction["amount"])) {
|
|
@@ -8,6 +8,7 @@ var _InvoiceV4LineItem_instances, _InvoiceV4LineItem_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.InvoiceV4LineItem = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* List of all the line items present on the invoice.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class InvoiceV4LineItem {
|
|
|
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 _InvoiceSplitterV1InvoicePageGroup_instances, _InvoiceSplitterV1InvoicePageGroup_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.InvoiceSplitterV1InvoicePageGroup = void 0;
|
|
10
|
+
const geometry_1 = require("../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* List of page groups. Each group represents a single invoice within a multi-invoice document.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class InvoiceSplitterV1InvoicePageGroup {
|
|
|
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.pageIndexes = prediction["page_indexes"];
|
|
24
25
|
this.pageId = prediction["page_id"];
|
|
25
26
|
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1AddedSugar_instances, _NutritionFactsLabelV1AddedSugar
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1AddedSugar = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of added sugars in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1AddedSugar {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1Calorie_instances, _NutritionFactsLabelV1Calorie_print
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1Calorie = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of calories in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1Calorie {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1Cholesterol_instances, _NutritionFactsLabelV1Cholester
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1Cholesterol = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of cholesterol in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1Cholesterol {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1DietaryFiber_instances, _NutritionFactsLabelV1DietaryF
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1DietaryFiber = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of dietary fiber in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1DietaryFiber {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1Nutrient_instances, _NutritionFactsLabelV1Nutrient_pri
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1Nutrient = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of nutrients in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1Nutrient {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1Protein_instances, _NutritionFactsLabelV1Protein_print
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1Protein = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of protein in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1Protein {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1SaturatedFat_instances, _NutritionFactsLabelV1Saturate
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1SaturatedFat = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of saturated fat in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1SaturatedFat {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1ServingSize_instances, _NutritionFactsLabelV1ServingSi
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1ServingSize = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The size of a single serving of the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1ServingSize {
|
|
|
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["amount"] !== undefined &&
|
|
25
26
|
prediction["amount"] !== null &&
|
|
26
27
|
!isNaN(prediction["amount"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1Sodium_instances, _NutritionFactsLabelV1Sodium_printab
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1Sodium = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of sodium in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1Sodium {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1TotalCarbohydrate_instances, _NutritionFactsLabelV1Tot
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1TotalCarbohydrate = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The total amount of carbohydrates in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1TotalCarbohydrate {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1TotalFat_instances, _NutritionFactsLabelV1TotalFat_pri
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1TotalFat = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The total amount of fat in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1TotalFat {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1TotalSugar_instances, _NutritionFactsLabelV1TotalSugar
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1TotalSugar = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The total amount of sugars in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1TotalSugar {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _NutritionFactsLabelV1TransFat_instances, _NutritionFactsLabelV1TransFat_pri
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NutritionFactsLabelV1TransFat = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The amount of trans fat in the product.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class NutritionFactsLabelV1TransFat {
|
|
|
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["daily_value"] !== undefined &&
|
|
25
26
|
prediction["daily_value"] !== null &&
|
|
26
27
|
!isNaN(prediction["daily_value"])) {
|
|
@@ -8,6 +8,7 @@ var _ReceiptV5LineItem_instances, _ReceiptV5LineItem_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ReceiptV5LineItem = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* List of all line items on the receipt.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class ReceiptV5LineItem {
|
|
|
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["quantity"] !== undefined &&
|
|
26
27
|
prediction["quantity"] !== null &&
|
|
@@ -8,6 +8,7 @@ var _ResumeV1Certificate_instances, _ResumeV1Certificate_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ResumeV1Certificate = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The list of certificates obtained by the candidate.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class ResumeV1Certificate {
|
|
|
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.grade = prediction["grade"];
|
|
25
26
|
this.name = prediction["name"];
|
|
26
27
|
this.provider = prediction["provider"];
|
|
@@ -8,6 +8,7 @@ var _ResumeV1Education_instances, _ResumeV1Education_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ResumeV1Education = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The list of the candidate's educational background.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class ResumeV1Education {
|
|
|
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.degreeDomain = prediction["degree_domain"];
|
|
25
26
|
this.degreeType = prediction["degree_type"];
|
|
26
27
|
this.endMonth = prediction["end_month"];
|
|
@@ -8,6 +8,7 @@ var _ResumeV1Language_instances, _ResumeV1Language_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ResumeV1Language = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The list of languages that the candidate is proficient in.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class ResumeV1Language {
|
|
|
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.language = prediction["language"];
|
|
25
26
|
this.level = prediction["level"];
|
|
26
27
|
this.pageId = prediction["page_id"];
|
|
@@ -8,6 +8,7 @@ var _ResumeV1ProfessionalExperience_instances, _ResumeV1ProfessionalExperience_p
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ResumeV1ProfessionalExperience = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The list of the candidate's professional experiences.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class ResumeV1ProfessionalExperience {
|
|
|
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.contractType = prediction["contract_type"];
|
|
25
26
|
this.department = prediction["department"];
|
|
26
27
|
this.description = prediction["description"];
|
|
@@ -8,6 +8,7 @@ var _ResumeV1SocialNetworksUrl_instances, _ResumeV1SocialNetworksUrl_printableVa
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.ResumeV1SocialNetworksUrl = void 0;
|
|
10
10
|
const common_1 = require("../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The list of social network profiles of the candidate.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class ResumeV1SocialNetworksUrl {
|
|
|
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.name = prediction["name"];
|
|
25
26
|
this.url = prediction["url"];
|
|
26
27
|
this.pageId = prediction["page_id"];
|
|
@@ -8,6 +8,7 @@ var _HealthcareCardV1Copay_instances, _HealthcareCardV1Copay_printableValues;
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.HealthcareCardV1Copay = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* Copayments for covered services.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class HealthcareCardV1Copay {
|
|
|
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["service_fees"] !== undefined &&
|
|
25
26
|
prediction["service_fees"] !== null &&
|
|
26
27
|
!isNaN(prediction["service_fees"])) {
|
|
@@ -8,6 +8,7 @@ var _UsMailV2RecipientAddress_instances, _UsMailV2RecipientAddress_printableValu
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.UsMailV2RecipientAddress = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The addresses of the recipients.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class UsMailV2RecipientAddress {
|
|
|
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.city = prediction["city"];
|
|
25
26
|
this.complete = prediction["complete"];
|
|
26
27
|
this.isAddressChange = prediction["is_address_change"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _UsMailV2SenderAddress_instances, _UsMailV2SenderAddress_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.UsMailV2SenderAddress = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* The address of the sender.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class UsMailV2SenderAddress {
|
|
|
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.city = prediction["city"];
|
|
24
25
|
this.complete = prediction["complete"];
|
|
25
26
|
this.postalCode = prediction["postal_code"];
|
|
@@ -8,6 +8,7 @@ var _UsMailV3RecipientAddress_instances, _UsMailV3RecipientAddress_printableValu
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.UsMailV3RecipientAddress = void 0;
|
|
10
10
|
const common_1 = require("../../../parsing/common");
|
|
11
|
+
const geometry_1 = require("../../../geometry");
|
|
11
12
|
/**
|
|
12
13
|
* The addresses of the recipients.
|
|
13
14
|
*/
|
|
@@ -20,7 +21,7 @@ class UsMailV3RecipientAddress {
|
|
|
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.city = prediction["city"];
|
|
25
26
|
this.complete = prediction["complete"];
|
|
26
27
|
this.isAddressChange = prediction["is_address_change"];
|
|
@@ -7,6 +7,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
7
7
|
var _UsMailV3SenderAddress_instances, _UsMailV3SenderAddress_printableValues;
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.UsMailV3SenderAddress = void 0;
|
|
10
|
+
const geometry_1 = require("../../../geometry");
|
|
10
11
|
/**
|
|
11
12
|
* The address of the sender.
|
|
12
13
|
*/
|
|
@@ -19,7 +20,7 @@ class UsMailV3SenderAddress {
|
|
|
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.city = prediction["city"];
|
|
24
25
|
this.complete = prediction["complete"];
|
|
25
26
|
this.postalCode = prediction["postal_code"];
|