mindee 4.29.0-rc6 → 4.29.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 +12 -24
- package/package.json +1 -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/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 +0 -1
- package/src/parsing/v2/index.js +1 -3
- package/src/parsing/v2/inferenceResult.d.ts +4 -4
- package/src/parsing/v2/inferenceResult.js +5 -8
- package/src/parsing/v2/rawText.d.ts +3 -9
- package/src/parsing/v2/rawText.js +2 -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
package/src/parsing/v2/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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.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");
|
|
@@ -11,8 +11,6 @@ var inferenceFile_1 = require("./inferenceFile");
|
|
|
11
11
|
Object.defineProperty(exports, "InferenceFile", { enumerable: true, get: function () { return inferenceFile_1.InferenceFile; } });
|
|
12
12
|
var inferenceModel_1 = require("./inferenceModel");
|
|
13
13
|
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
14
|
var inferenceResponse_1 = require("./inferenceResponse");
|
|
17
15
|
Object.defineProperty(exports, "InferenceResponse", { enumerable: true, get: function () { return inferenceResponse_1.InferenceResponse; } });
|
|
18
16
|
var inferenceResult_1 = require("./inferenceResult");
|
|
@@ -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,13 +1,13 @@
|
|
|
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() {
|
|
@@ -16,9 +16,6 @@ class InferenceResult {
|
|
|
16
16
|
"======",
|
|
17
17
|
this.fields.toString(),
|
|
18
18
|
];
|
|
19
|
-
if (this.options) {
|
|
20
|
-
parts.push("Options", "=======", this.options.toString());
|
|
21
|
-
}
|
|
22
19
|
return parts.join("\n");
|
|
23
20
|
}
|
|
24
21
|
}
|
|
@@ -1,15 +1,9 @@
|
|
|
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);
|
|
15
9
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
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
|
-
this.content = serverResponse["content"];
|
|
7
|
+
this.pages = serverResponse["pages"] ? serverResponse["pages"].map((rawTextPage) => new rawTextPage_1.RawTextPage(rawTextPage)) : [];
|
|
11
8
|
}
|
|
12
9
|
}
|
|
13
10
|
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"];
|
|
@@ -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"];
|