mindee 4.14.1 → 4.16.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 +24 -0
- package/package.json +2 -1
- package/src/client.d.ts +5 -3
- package/src/client.js +7 -1
- package/src/http/endpoint.d.ts +3 -1
- package/src/http/endpoint.js +12 -8
- package/src/http/responseValidation.js +11 -4
- package/src/imageOperations/invoiceSplitterExtractor/invoiceSplitterExtractor.d.ts +2 -1
- package/src/imageOperations/invoiceSplitterExtractor/invoiceSplitterExtractor.js +2 -1
- package/src/imageOperations/multiReceiptsExtractor/multiReceiptsExtractor.js +3 -1
- package/src/input/localResponse.d.ts +1 -0
- package/src/input/localResponse.js +1 -0
- package/src/parsing/common/document.d.ts +1 -0
- package/src/parsing/common/document.js +27 -6
- package/src/parsing/common/extras/fullTextOcrExtra.d.ts +11 -0
- package/src/parsing/common/extras/fullTextOcrExtra.js +20 -0
- package/src/parsing/common/extras/index.d.ts +3 -0
- package/src/parsing/common/extras/index.js +9 -0
- package/src/parsing/common/index.d.ts +2 -0
- package/src/parsing/common/index.js +28 -1
- package/src/parsing/common/page.d.ts +1 -0
- package/src/parsing/common/page.js +30 -7
- package/src/parsing/common/summaryHelper.d.ts +10 -0
- package/src/parsing/common/summaryHelper.js +27 -1
- package/src/parsing/generated/generatedObject.d.ts +3 -3
- package/src/parsing/generated/generatedObject.js +14 -5
- package/src/parsing/standard/amount.d.ts +0 -1
- package/src/parsing/standard/amount.js +4 -11
- package/src/parsing/standard/index.d.ts +1 -1
- package/src/parsing/standard/index.js +1 -2
- package/src/parsing/standard/tax.js +4 -4
- package/src/pdf/pdfOperation.d.ts +1 -1
- package/src/pdf/pdfOperation.js +12 -7
- package/src/product/billOfLading/billOfLadingV1.d.ts +16 -0
- package/src/product/billOfLading/billOfLadingV1.js +27 -0
- package/src/product/billOfLading/billOfLadingV1Carrier.d.ts +32 -0
- package/src/product/billOfLading/billOfLadingV1Carrier.js +62 -0
- package/src/product/billOfLading/billOfLadingV1CarrierItem.d.ts +38 -0
- package/src/product/billOfLading/billOfLadingV1CarrierItem.js +117 -0
- package/src/product/billOfLading/billOfLadingV1Consignee.d.ts +34 -0
- package/src/product/billOfLading/billOfLadingV1Consignee.js +67 -0
- package/src/product/billOfLading/billOfLadingV1Document.d.ts +39 -0
- package/src/product/billOfLading/billOfLadingV1Document.js +95 -0
- package/src/product/billOfLading/billOfLadingV1NotifyParty.d.ts +34 -0
- package/src/product/billOfLading/billOfLadingV1NotifyParty.js +67 -0
- package/src/product/billOfLading/billOfLadingV1Shipper.d.ts +34 -0
- package/src/product/billOfLading/billOfLadingV1Shipper.js +67 -0
- package/src/product/billOfLading/index.d.ts +1 -0
- package/src/product/billOfLading/index.js +5 -0
- package/src/product/billOfLading/internal.d.ts +7 -0
- package/src/product/billOfLading/internal.js +17 -0
- package/src/product/financialDocument/financialDocumentV1LineItem.d.ts +8 -8
- package/src/product/financialDocument/financialDocumentV1LineItem.js +47 -22
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +4 -4
- package/src/product/fr/energyBill/energyBillV1.d.ts +16 -0
- package/src/product/fr/energyBill/energyBillV1.js +27 -0
- package/src/product/fr/energyBill/energyBillV1Document.d.ts +49 -0
- package/src/product/fr/energyBill/energyBillV1Document.js +143 -0
- package/src/product/fr/energyBill/energyBillV1EnergyConsumer.d.ts +30 -0
- package/src/product/fr/energyBill/energyBillV1EnergyConsumer.js +57 -0
- package/src/product/fr/energyBill/energyBillV1EnergySupplier.d.ts +30 -0
- package/src/product/fr/energyBill/energyBillV1EnergySupplier.js +57 -0
- package/src/product/fr/energyBill/energyBillV1EnergyUsage.d.ts +38 -0
- package/src/product/fr/energyBill/energyBillV1EnergyUsage.js +117 -0
- package/src/product/fr/energyBill/energyBillV1MeterDetail.d.ts +32 -0
- package/src/product/fr/energyBill/energyBillV1MeterDetail.js +62 -0
- package/src/product/fr/energyBill/energyBillV1Subscription.d.ts +38 -0
- package/src/product/fr/energyBill/energyBillV1Subscription.js +117 -0
- package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.d.ts +38 -0
- package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.js +117 -0
- package/src/product/fr/energyBill/index.d.ts +1 -0
- package/src/product/fr/energyBill/index.js +5 -0
- package/src/product/fr/energyBill/internal.d.ts +8 -0
- package/src/product/fr/energyBill/internal.js +19 -0
- package/src/product/fr/index.d.ts +2 -0
- package/src/product/fr/index.js +5 -1
- package/src/product/fr/internal.d.ts +2 -0
- package/src/product/fr/internal.js +3 -1
- package/src/product/fr/payslip/index.d.ts +1 -0
- package/src/product/fr/payslip/index.js +5 -0
- package/src/product/fr/payslip/internal.d.ts +10 -0
- package/src/product/fr/payslip/internal.js +23 -0
- package/src/product/fr/payslip/payslipV2.d.ts +16 -0
- package/src/product/fr/payslip/payslipV2.js +27 -0
- package/src/product/fr/payslip/payslipV2BankAccountDetail.d.ts +32 -0
- package/src/product/fr/payslip/payslipV2BankAccountDetail.js +62 -0
- package/src/product/fr/payslip/payslipV2Document.d.ts +35 -0
- package/src/product/fr/payslip/payslipV2Document.js +80 -0
- package/src/product/fr/payslip/payslipV2Employee.d.ts +40 -0
- package/src/product/fr/payslip/payslipV2Employee.js +82 -0
- package/src/product/fr/payslip/payslipV2Employer.d.ts +40 -0
- package/src/product/fr/payslip/payslipV2Employer.js +82 -0
- package/src/product/fr/payslip/payslipV2Employment.d.ts +38 -0
- package/src/product/fr/payslip/payslipV2Employment.js +85 -0
- package/src/product/fr/payslip/payslipV2PayDetail.d.ts +46 -0
- package/src/product/fr/payslip/payslipV2PayDetail.js +168 -0
- package/src/product/fr/payslip/payslipV2PayPeriod.d.ts +36 -0
- package/src/product/fr/payslip/payslipV2PayPeriod.js +72 -0
- package/src/product/fr/payslip/payslipV2Pto.d.ts +32 -0
- package/src/product/fr/payslip/payslipV2Pto.js +84 -0
- package/src/product/fr/payslip/payslipV2SalaryDetail.d.ts +34 -0
- package/src/product/fr/payslip/payslipV2SalaryDetail.js +97 -0
- package/src/product/generated/generatedV1.js +2 -1
- package/src/product/index.d.ts +2 -0
- package/src/product/index.js +5 -1
- package/src/product/internal.d.ts +2 -0
- package/src/product/internal.js +3 -1
- package/src/product/invoice/invoiceV4LineItem.d.ts +8 -8
- package/src/product/invoice/invoiceV4LineItem.js +47 -22
- package/src/product/nutritionFactsLabel/index.d.ts +1 -0
- package/src/product/nutritionFactsLabel/index.js +5 -0
- package/src/product/nutritionFactsLabel/internal.d.ts +15 -0
- package/src/product/nutritionFactsLabel/internal.js +33 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1.d.ts +16 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1.js +27 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Document.d.ts +53 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Document.js +117 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.d.ts +36 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.js +107 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.d.ts +30 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.js +65 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.d.ts +34 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.js +89 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.js +84 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.d.ts +32 -0
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.js +84 -0
- package/src/product/receipt/receiptV5LineItem.d.ts +4 -4
- package/src/product/receipt/receiptV5LineItem.js +27 -12
- package/src/product/resume/resumeV1Certificate.d.ts +4 -4
- package/src/product/resume/resumeV1Certificate.js +9 -8
- package/src/product/resume/resumeV1Education.d.ts +7 -7
- package/src/product/resume/resumeV1Education.js +15 -14
- package/src/product/resume/resumeV1Language.d.ts +2 -2
- package/src/product/resume/resumeV1Language.js +5 -4
- package/src/product/resume/resumeV1ProfessionalExperience.d.ts +8 -8
- package/src/product/resume/resumeV1ProfessionalExperience.js +17 -16
- package/src/product/resume/resumeV1SocialNetworksUrl.d.ts +2 -2
- package/src/product/resume/resumeV1SocialNetworksUrl.js +5 -4
- package/src/product/us/healthcareCard/healthcareCardV1Copay.d.ts +2 -2
- package/src/product/us/healthcareCard/healthcareCardV1Copay.js +11 -6
- package/src/product/us/usMail/index.d.ts +1 -0
- package/src/product/us/usMail/index.js +5 -0
- package/src/product/us/usMail/usMailV2RecipientAddress.d.ts +7 -7
- package/src/product/us/usMail/usMailV2RecipientAddress.js +17 -15
- package/src/product/us/usMail/usMailV2SenderAddress.d.ts +5 -5
- package/src/product/us/usMail/usMailV2SenderAddress.js +5 -25
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnergyBillV1Document = void 0;
|
|
4
|
+
const common_1 = require("../../../parsing/common");
|
|
5
|
+
const energyBillV1EnergySupplier_1 = require("./energyBillV1EnergySupplier");
|
|
6
|
+
const energyBillV1EnergyConsumer_1 = require("./energyBillV1EnergyConsumer");
|
|
7
|
+
const energyBillV1Subscription_1 = require("./energyBillV1Subscription");
|
|
8
|
+
const energyBillV1EnergyUsage_1 = require("./energyBillV1EnergyUsage");
|
|
9
|
+
const energyBillV1TaxesAndContribution_1 = require("./energyBillV1TaxesAndContribution");
|
|
10
|
+
const energyBillV1MeterDetail_1 = require("./energyBillV1MeterDetail");
|
|
11
|
+
const standard_1 = require("../../../parsing/standard");
|
|
12
|
+
/**
|
|
13
|
+
* Energy Bill API version 1.0 document data.
|
|
14
|
+
*/
|
|
15
|
+
class EnergyBillV1Document {
|
|
16
|
+
constructor(rawPrediction, pageId) {
|
|
17
|
+
/** Details of energy consumption. */
|
|
18
|
+
this.energyUsage = [];
|
|
19
|
+
/** The subscription details fee for the energy service. */
|
|
20
|
+
this.subscription = [];
|
|
21
|
+
/** Details of Taxes and Contributions. */
|
|
22
|
+
this.taxesAndContributions = [];
|
|
23
|
+
this.contractId = new standard_1.StringField({
|
|
24
|
+
prediction: rawPrediction["contract_id"],
|
|
25
|
+
pageId: pageId,
|
|
26
|
+
});
|
|
27
|
+
this.deliveryPoint = new standard_1.StringField({
|
|
28
|
+
prediction: rawPrediction["delivery_point"],
|
|
29
|
+
pageId: pageId,
|
|
30
|
+
});
|
|
31
|
+
this.dueDate = new standard_1.DateField({
|
|
32
|
+
prediction: rawPrediction["due_date"],
|
|
33
|
+
pageId: pageId,
|
|
34
|
+
});
|
|
35
|
+
this.energyConsumer = new energyBillV1EnergyConsumer_1.EnergyBillV1EnergyConsumer({
|
|
36
|
+
prediction: rawPrediction["energy_consumer"],
|
|
37
|
+
pageId: pageId,
|
|
38
|
+
});
|
|
39
|
+
this.energySupplier = new energyBillV1EnergySupplier_1.EnergyBillV1EnergySupplier({
|
|
40
|
+
prediction: rawPrediction["energy_supplier"],
|
|
41
|
+
pageId: pageId,
|
|
42
|
+
});
|
|
43
|
+
rawPrediction["energy_usage"] &&
|
|
44
|
+
rawPrediction["energy_usage"].map((itemPrediction) => this.energyUsage.push(new energyBillV1EnergyUsage_1.EnergyBillV1EnergyUsage({
|
|
45
|
+
prediction: itemPrediction,
|
|
46
|
+
pageId: pageId,
|
|
47
|
+
})));
|
|
48
|
+
this.invoiceDate = new standard_1.DateField({
|
|
49
|
+
prediction: rawPrediction["invoice_date"],
|
|
50
|
+
pageId: pageId,
|
|
51
|
+
});
|
|
52
|
+
this.invoiceNumber = new standard_1.StringField({
|
|
53
|
+
prediction: rawPrediction["invoice_number"],
|
|
54
|
+
pageId: pageId,
|
|
55
|
+
});
|
|
56
|
+
this.meterDetails = new energyBillV1MeterDetail_1.EnergyBillV1MeterDetail({
|
|
57
|
+
prediction: rawPrediction["meter_details"],
|
|
58
|
+
pageId: pageId,
|
|
59
|
+
});
|
|
60
|
+
rawPrediction["subscription"] &&
|
|
61
|
+
rawPrediction["subscription"].map((itemPrediction) => this.subscription.push(new energyBillV1Subscription_1.EnergyBillV1Subscription({
|
|
62
|
+
prediction: itemPrediction,
|
|
63
|
+
pageId: pageId,
|
|
64
|
+
})));
|
|
65
|
+
rawPrediction["taxes_and_contributions"] &&
|
|
66
|
+
rawPrediction["taxes_and_contributions"].map((itemPrediction) => this.taxesAndContributions.push(new energyBillV1TaxesAndContribution_1.EnergyBillV1TaxesAndContribution({
|
|
67
|
+
prediction: itemPrediction,
|
|
68
|
+
pageId: pageId,
|
|
69
|
+
})));
|
|
70
|
+
this.totalAmount = new standard_1.AmountField({
|
|
71
|
+
prediction: rawPrediction["total_amount"],
|
|
72
|
+
pageId: pageId,
|
|
73
|
+
});
|
|
74
|
+
this.totalBeforeTaxes = new standard_1.AmountField({
|
|
75
|
+
prediction: rawPrediction["total_before_taxes"],
|
|
76
|
+
pageId: pageId,
|
|
77
|
+
});
|
|
78
|
+
this.totalTaxes = new standard_1.AmountField({
|
|
79
|
+
prediction: rawPrediction["total_taxes"],
|
|
80
|
+
pageId: pageId,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Default string representation.
|
|
85
|
+
*/
|
|
86
|
+
toString() {
|
|
87
|
+
let subscriptionSummary = "";
|
|
88
|
+
if (this.subscription && this.subscription.length > 0) {
|
|
89
|
+
const subscriptionColSizes = [38, 12, 12, 10, 11, 12];
|
|
90
|
+
subscriptionSummary += "\n" + (0, common_1.lineSeparator)(subscriptionColSizes, "-") + "\n ";
|
|
91
|
+
subscriptionSummary += "| Description ";
|
|
92
|
+
subscriptionSummary += "| End Date ";
|
|
93
|
+
subscriptionSummary += "| Start Date ";
|
|
94
|
+
subscriptionSummary += "| Tax Rate ";
|
|
95
|
+
subscriptionSummary += "| Total ";
|
|
96
|
+
subscriptionSummary += "| Unit Price ";
|
|
97
|
+
subscriptionSummary += "|\n" + (0, common_1.lineSeparator)(subscriptionColSizes, "=");
|
|
98
|
+
subscriptionSummary += this.subscription.map((item) => "\n " + item.toTableLine() + "\n" + (0, common_1.lineSeparator)(subscriptionColSizes, "-")).join("");
|
|
99
|
+
}
|
|
100
|
+
let energyUsageSummary = "";
|
|
101
|
+
if (this.energyUsage && this.energyUsage.length > 0) {
|
|
102
|
+
const energyUsageColSizes = [38, 12, 12, 10, 11, 12];
|
|
103
|
+
energyUsageSummary += "\n" + (0, common_1.lineSeparator)(energyUsageColSizes, "-") + "\n ";
|
|
104
|
+
energyUsageSummary += "| Description ";
|
|
105
|
+
energyUsageSummary += "| End Date ";
|
|
106
|
+
energyUsageSummary += "| Start Date ";
|
|
107
|
+
energyUsageSummary += "| Tax Rate ";
|
|
108
|
+
energyUsageSummary += "| Total ";
|
|
109
|
+
energyUsageSummary += "| Unit Price ";
|
|
110
|
+
energyUsageSummary += "|\n" + (0, common_1.lineSeparator)(energyUsageColSizes, "=");
|
|
111
|
+
energyUsageSummary += this.energyUsage.map((item) => "\n " + item.toTableLine() + "\n" + (0, common_1.lineSeparator)(energyUsageColSizes, "-")).join("");
|
|
112
|
+
}
|
|
113
|
+
let taxesAndContributionsSummary = "";
|
|
114
|
+
if (this.taxesAndContributions && this.taxesAndContributions.length > 0) {
|
|
115
|
+
const taxesAndContributionsColSizes = [38, 12, 12, 10, 11, 12];
|
|
116
|
+
taxesAndContributionsSummary += "\n" + (0, common_1.lineSeparator)(taxesAndContributionsColSizes, "-") + "\n ";
|
|
117
|
+
taxesAndContributionsSummary += "| Description ";
|
|
118
|
+
taxesAndContributionsSummary += "| End Date ";
|
|
119
|
+
taxesAndContributionsSummary += "| Start Date ";
|
|
120
|
+
taxesAndContributionsSummary += "| Tax Rate ";
|
|
121
|
+
taxesAndContributionsSummary += "| Total ";
|
|
122
|
+
taxesAndContributionsSummary += "| Unit Price ";
|
|
123
|
+
taxesAndContributionsSummary += "|\n" + (0, common_1.lineSeparator)(taxesAndContributionsColSizes, "=");
|
|
124
|
+
taxesAndContributionsSummary += this.taxesAndContributions.map((item) => "\n " + item.toTableLine() + "\n" + (0, common_1.lineSeparator)(taxesAndContributionsColSizes, "-")).join("");
|
|
125
|
+
}
|
|
126
|
+
const outStr = `:Invoice Number: ${this.invoiceNumber}
|
|
127
|
+
:Contract ID: ${this.contractId}
|
|
128
|
+
:Delivery Point: ${this.deliveryPoint}
|
|
129
|
+
:Invoice Date: ${this.invoiceDate}
|
|
130
|
+
:Due Date: ${this.dueDate}
|
|
131
|
+
:Total Before Taxes: ${this.totalBeforeTaxes}
|
|
132
|
+
:Total Taxes: ${this.totalTaxes}
|
|
133
|
+
:Total Amount: ${this.totalAmount}
|
|
134
|
+
:Energy Supplier: ${this.energySupplier.toFieldList()}
|
|
135
|
+
:Energy Consumer: ${this.energyConsumer.toFieldList()}
|
|
136
|
+
:Subscription: ${subscriptionSummary}
|
|
137
|
+
:Energy Usage: ${energyUsageSummary}
|
|
138
|
+
:Taxes and Contributions: ${taxesAndContributionsSummary}
|
|
139
|
+
:Meter Details: ${this.meterDetails.toFieldList()}`.trimEnd();
|
|
140
|
+
return (0, common_1.cleanOutString)(outStr);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.EnergyBillV1Document = EnergyBillV1Document;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* The entity that consumes the energy.
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnergyBillV1EnergyConsumer {
|
|
7
|
+
#private;
|
|
8
|
+
/** The address of the energy consumer. */
|
|
9
|
+
address: string | null;
|
|
10
|
+
/** The name of the energy consumer. */
|
|
11
|
+
name: string | null;
|
|
12
|
+
/** Confidence score */
|
|
13
|
+
confidence: number;
|
|
14
|
+
/** The document page on which the information was found. */
|
|
15
|
+
pageId: number;
|
|
16
|
+
/**
|
|
17
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
18
|
+
* the field in the document.
|
|
19
|
+
*/
|
|
20
|
+
polygon: Polygon;
|
|
21
|
+
constructor({ prediction }: StringDict);
|
|
22
|
+
/**
|
|
23
|
+
* Default string representation.
|
|
24
|
+
*/
|
|
25
|
+
toString(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Output in a format suitable for inclusion in a field list.
|
|
28
|
+
*/
|
|
29
|
+
toFieldList(): string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _EnergyBillV1EnergyConsumer_instances, _EnergyBillV1EnergyConsumer_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EnergyBillV1EnergyConsumer = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* The entity that consumes the energy.
|
|
12
|
+
*/
|
|
13
|
+
class EnergyBillV1EnergyConsumer {
|
|
14
|
+
constructor({ prediction = {} }) {
|
|
15
|
+
_EnergyBillV1EnergyConsumer_instances.add(this);
|
|
16
|
+
/** Confidence score */
|
|
17
|
+
this.confidence = 0.0;
|
|
18
|
+
/**
|
|
19
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
+
* the field in the document.
|
|
21
|
+
*/
|
|
22
|
+
this.polygon = [];
|
|
23
|
+
this.address = prediction["address"];
|
|
24
|
+
this.name = prediction["name"];
|
|
25
|
+
this.pageId = prediction["page_id"];
|
|
26
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
27
|
+
if (prediction["polygon"]) {
|
|
28
|
+
this.polygon = prediction.polygon;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Default string representation.
|
|
33
|
+
*/
|
|
34
|
+
toString() {
|
|
35
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergyConsumer_instances, "m", _EnergyBillV1EnergyConsumer_printableValues).call(this);
|
|
36
|
+
return ("Address: " +
|
|
37
|
+
printable.address +
|
|
38
|
+
", Name: " +
|
|
39
|
+
printable.name);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Output in a format suitable for inclusion in a field list.
|
|
43
|
+
*/
|
|
44
|
+
toFieldList() {
|
|
45
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergyConsumer_instances, "m", _EnergyBillV1EnergyConsumer_printableValues).call(this);
|
|
46
|
+
return `
|
|
47
|
+
:Address: ${printable.address}
|
|
48
|
+
:Name: ${printable.name}`.trimEnd();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.EnergyBillV1EnergyConsumer = EnergyBillV1EnergyConsumer;
|
|
52
|
+
_EnergyBillV1EnergyConsumer_instances = new WeakSet(), _EnergyBillV1EnergyConsumer_printableValues = function _EnergyBillV1EnergyConsumer_printableValues() {
|
|
53
|
+
return {
|
|
54
|
+
address: this.address ?? "",
|
|
55
|
+
name: this.name ?? "",
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* The company that supplies the energy.
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnergyBillV1EnergySupplier {
|
|
7
|
+
#private;
|
|
8
|
+
/** The address of the energy supplier. */
|
|
9
|
+
address: string | null;
|
|
10
|
+
/** The name of the energy supplier. */
|
|
11
|
+
name: string | null;
|
|
12
|
+
/** Confidence score */
|
|
13
|
+
confidence: number;
|
|
14
|
+
/** The document page on which the information was found. */
|
|
15
|
+
pageId: number;
|
|
16
|
+
/**
|
|
17
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
18
|
+
* the field in the document.
|
|
19
|
+
*/
|
|
20
|
+
polygon: Polygon;
|
|
21
|
+
constructor({ prediction }: StringDict);
|
|
22
|
+
/**
|
|
23
|
+
* Default string representation.
|
|
24
|
+
*/
|
|
25
|
+
toString(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Output in a format suitable for inclusion in a field list.
|
|
28
|
+
*/
|
|
29
|
+
toFieldList(): string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _EnergyBillV1EnergySupplier_instances, _EnergyBillV1EnergySupplier_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EnergyBillV1EnergySupplier = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* The company that supplies the energy.
|
|
12
|
+
*/
|
|
13
|
+
class EnergyBillV1EnergySupplier {
|
|
14
|
+
constructor({ prediction = {} }) {
|
|
15
|
+
_EnergyBillV1EnergySupplier_instances.add(this);
|
|
16
|
+
/** Confidence score */
|
|
17
|
+
this.confidence = 0.0;
|
|
18
|
+
/**
|
|
19
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
+
* the field in the document.
|
|
21
|
+
*/
|
|
22
|
+
this.polygon = [];
|
|
23
|
+
this.address = prediction["address"];
|
|
24
|
+
this.name = prediction["name"];
|
|
25
|
+
this.pageId = prediction["page_id"];
|
|
26
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
27
|
+
if (prediction["polygon"]) {
|
|
28
|
+
this.polygon = prediction.polygon;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Default string representation.
|
|
33
|
+
*/
|
|
34
|
+
toString() {
|
|
35
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergySupplier_instances, "m", _EnergyBillV1EnergySupplier_printableValues).call(this);
|
|
36
|
+
return ("Address: " +
|
|
37
|
+
printable.address +
|
|
38
|
+
", Name: " +
|
|
39
|
+
printable.name);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Output in a format suitable for inclusion in a field list.
|
|
43
|
+
*/
|
|
44
|
+
toFieldList() {
|
|
45
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergySupplier_instances, "m", _EnergyBillV1EnergySupplier_printableValues).call(this);
|
|
46
|
+
return `
|
|
47
|
+
:Address: ${printable.address}
|
|
48
|
+
:Name: ${printable.name}`.trimEnd();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.EnergyBillV1EnergySupplier = EnergyBillV1EnergySupplier;
|
|
52
|
+
_EnergyBillV1EnergySupplier_instances = new WeakSet(), _EnergyBillV1EnergySupplier_printableValues = function _EnergyBillV1EnergySupplier_printableValues() {
|
|
53
|
+
return {
|
|
54
|
+
address: this.address ?? "",
|
|
55
|
+
name: this.name ?? "",
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* Details of energy consumption.
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnergyBillV1EnergyUsage {
|
|
7
|
+
#private;
|
|
8
|
+
/** Description or details of the energy usage. */
|
|
9
|
+
description: string | null;
|
|
10
|
+
/** The end date of the energy usage. */
|
|
11
|
+
endDate: string | null;
|
|
12
|
+
/** The start date of the energy usage. */
|
|
13
|
+
startDate: string | null;
|
|
14
|
+
/** The rate of tax applied to the total cost. */
|
|
15
|
+
taxRate: number | null;
|
|
16
|
+
/** The total cost of energy consumed. */
|
|
17
|
+
total: number | null;
|
|
18
|
+
/** The price per unit of energy consumed. */
|
|
19
|
+
unitPrice: number | null;
|
|
20
|
+
/** Confidence score */
|
|
21
|
+
confidence: number;
|
|
22
|
+
/** The document page on which the information was found. */
|
|
23
|
+
pageId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
26
|
+
* the field in the document.
|
|
27
|
+
*/
|
|
28
|
+
polygon: Polygon;
|
|
29
|
+
constructor({ prediction }: StringDict);
|
|
30
|
+
/**
|
|
31
|
+
* Default string representation.
|
|
32
|
+
*/
|
|
33
|
+
toString(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
36
|
+
*/
|
|
37
|
+
toTableLine(): string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _EnergyBillV1EnergyUsage_instances, _EnergyBillV1EnergyUsage_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EnergyBillV1EnergyUsage = void 0;
|
|
10
|
+
const common_1 = require("../../../parsing/common");
|
|
11
|
+
/**
|
|
12
|
+
* Details of energy consumption.
|
|
13
|
+
*/
|
|
14
|
+
class EnergyBillV1EnergyUsage {
|
|
15
|
+
constructor({ prediction = {} }) {
|
|
16
|
+
_EnergyBillV1EnergyUsage_instances.add(this);
|
|
17
|
+
/** Confidence score */
|
|
18
|
+
this.confidence = 0.0;
|
|
19
|
+
/**
|
|
20
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
|
+
* the field in the document.
|
|
22
|
+
*/
|
|
23
|
+
this.polygon = [];
|
|
24
|
+
this.description = prediction["description"];
|
|
25
|
+
this.endDate = prediction["end_date"];
|
|
26
|
+
this.startDate = prediction["start_date"];
|
|
27
|
+
if (prediction["tax_rate"] !== undefined &&
|
|
28
|
+
prediction["tax_rate"] !== null &&
|
|
29
|
+
!isNaN(prediction["tax_rate"])) {
|
|
30
|
+
this.taxRate = +parseFloat(prediction["tax_rate"]);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.taxRate = null;
|
|
34
|
+
}
|
|
35
|
+
if (prediction["total"] !== undefined &&
|
|
36
|
+
prediction["total"] !== null &&
|
|
37
|
+
!isNaN(prediction["total"])) {
|
|
38
|
+
this.total = +parseFloat(prediction["total"]);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
this.total = null;
|
|
42
|
+
}
|
|
43
|
+
if (prediction["unit_price"] !== undefined &&
|
|
44
|
+
prediction["unit_price"] !== null &&
|
|
45
|
+
!isNaN(prediction["unit_price"])) {
|
|
46
|
+
this.unitPrice = +parseFloat(prediction["unit_price"]);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
this.unitPrice = null;
|
|
50
|
+
}
|
|
51
|
+
this.pageId = prediction["page_id"];
|
|
52
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
53
|
+
if (prediction["polygon"]) {
|
|
54
|
+
this.polygon = prediction.polygon;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Default string representation.
|
|
59
|
+
*/
|
|
60
|
+
toString() {
|
|
61
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergyUsage_instances, "m", _EnergyBillV1EnergyUsage_printableValues).call(this);
|
|
62
|
+
return ("Description: " +
|
|
63
|
+
printable.description +
|
|
64
|
+
", End Date: " +
|
|
65
|
+
printable.endDate +
|
|
66
|
+
", Start Date: " +
|
|
67
|
+
printable.startDate +
|
|
68
|
+
", Tax Rate: " +
|
|
69
|
+
printable.taxRate +
|
|
70
|
+
", Total: " +
|
|
71
|
+
printable.total +
|
|
72
|
+
", Unit Price: " +
|
|
73
|
+
printable.unitPrice);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
77
|
+
*/
|
|
78
|
+
toTableLine() {
|
|
79
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergyUsage_instances, "m", _EnergyBillV1EnergyUsage_printableValues).call(this);
|
|
80
|
+
return ("| " +
|
|
81
|
+
printable.description.padEnd(36) +
|
|
82
|
+
" | " +
|
|
83
|
+
printable.endDate.padEnd(10) +
|
|
84
|
+
" | " +
|
|
85
|
+
printable.startDate.padEnd(10) +
|
|
86
|
+
" | " +
|
|
87
|
+
printable.taxRate.padEnd(8) +
|
|
88
|
+
" | " +
|
|
89
|
+
printable.total.padEnd(9) +
|
|
90
|
+
" | " +
|
|
91
|
+
printable.unitPrice.padEnd(10) +
|
|
92
|
+
" |");
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.EnergyBillV1EnergyUsage = EnergyBillV1EnergyUsage;
|
|
96
|
+
_EnergyBillV1EnergyUsage_instances = new WeakSet(), _EnergyBillV1EnergyUsage_printableValues = function _EnergyBillV1EnergyUsage_printableValues() {
|
|
97
|
+
return {
|
|
98
|
+
description: this.description ?
|
|
99
|
+
this.description.length <= 36 ?
|
|
100
|
+
(0, common_1.cleanSpecialChars)(this.description) :
|
|
101
|
+
(0, common_1.cleanSpecialChars)(this.description).slice(0, 33) + "..." :
|
|
102
|
+
"",
|
|
103
|
+
endDate: this.endDate ?
|
|
104
|
+
this.endDate.length <= 10 ?
|
|
105
|
+
(0, common_1.cleanSpecialChars)(this.endDate) :
|
|
106
|
+
(0, common_1.cleanSpecialChars)(this.endDate).slice(0, 7) + "..." :
|
|
107
|
+
"",
|
|
108
|
+
startDate: this.startDate ?
|
|
109
|
+
this.startDate.length <= 10 ?
|
|
110
|
+
(0, common_1.cleanSpecialChars)(this.startDate) :
|
|
111
|
+
(0, common_1.cleanSpecialChars)(this.startDate).slice(0, 7) + "..." :
|
|
112
|
+
"",
|
|
113
|
+
taxRate: this.taxRate !== undefined ? (0, common_1.floatToString)(this.taxRate) : "",
|
|
114
|
+
total: this.total !== undefined ? (0, common_1.floatToString)(this.total) : "",
|
|
115
|
+
unitPrice: this.unitPrice !== undefined ? (0, common_1.floatToString)(this.unitPrice) : "",
|
|
116
|
+
};
|
|
117
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* Information about the energy meter.
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnergyBillV1MeterDetail {
|
|
7
|
+
#private;
|
|
8
|
+
/** The unique identifier of the energy meter. */
|
|
9
|
+
meterNumber: string | null;
|
|
10
|
+
/** The type of energy meter. */
|
|
11
|
+
meterType: string | null;
|
|
12
|
+
/** The unit of measurement for energy consumption, which can be kW, m³, or L. */
|
|
13
|
+
unit: string | null;
|
|
14
|
+
/** Confidence score */
|
|
15
|
+
confidence: number;
|
|
16
|
+
/** The document page on which the information was found. */
|
|
17
|
+
pageId: number;
|
|
18
|
+
/**
|
|
19
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
+
* the field in the document.
|
|
21
|
+
*/
|
|
22
|
+
polygon: Polygon;
|
|
23
|
+
constructor({ prediction }: StringDict);
|
|
24
|
+
/**
|
|
25
|
+
* Default string representation.
|
|
26
|
+
*/
|
|
27
|
+
toString(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Output in a format suitable for inclusion in a field list.
|
|
30
|
+
*/
|
|
31
|
+
toFieldList(): string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _EnergyBillV1MeterDetail_instances, _EnergyBillV1MeterDetail_printableValues;
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EnergyBillV1MeterDetail = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* Information about the energy meter.
|
|
12
|
+
*/
|
|
13
|
+
class EnergyBillV1MeterDetail {
|
|
14
|
+
constructor({ prediction = {} }) {
|
|
15
|
+
_EnergyBillV1MeterDetail_instances.add(this);
|
|
16
|
+
/** Confidence score */
|
|
17
|
+
this.confidence = 0.0;
|
|
18
|
+
/**
|
|
19
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
+
* the field in the document.
|
|
21
|
+
*/
|
|
22
|
+
this.polygon = [];
|
|
23
|
+
this.meterNumber = prediction["meter_number"];
|
|
24
|
+
this.meterType = prediction["meter_type"];
|
|
25
|
+
this.unit = prediction["unit"];
|
|
26
|
+
this.pageId = prediction["page_id"];
|
|
27
|
+
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
28
|
+
if (prediction["polygon"]) {
|
|
29
|
+
this.polygon = prediction.polygon;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Default string representation.
|
|
34
|
+
*/
|
|
35
|
+
toString() {
|
|
36
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1MeterDetail_instances, "m", _EnergyBillV1MeterDetail_printableValues).call(this);
|
|
37
|
+
return ("Meter Number: " +
|
|
38
|
+
printable.meterNumber +
|
|
39
|
+
", Meter Type: " +
|
|
40
|
+
printable.meterType +
|
|
41
|
+
", Unit of Measure: " +
|
|
42
|
+
printable.unit);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Output in a format suitable for inclusion in a field list.
|
|
46
|
+
*/
|
|
47
|
+
toFieldList() {
|
|
48
|
+
const printable = __classPrivateFieldGet(this, _EnergyBillV1MeterDetail_instances, "m", _EnergyBillV1MeterDetail_printableValues).call(this);
|
|
49
|
+
return `
|
|
50
|
+
:Meter Number: ${printable.meterNumber}
|
|
51
|
+
:Meter Type: ${printable.meterType}
|
|
52
|
+
:Unit of Measure: ${printable.unit}`.trimEnd();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.EnergyBillV1MeterDetail = EnergyBillV1MeterDetail;
|
|
56
|
+
_EnergyBillV1MeterDetail_instances = new WeakSet(), _EnergyBillV1MeterDetail_printableValues = function _EnergyBillV1MeterDetail_printableValues() {
|
|
57
|
+
return {
|
|
58
|
+
meterNumber: this.meterNumber ?? "",
|
|
59
|
+
meterType: this.meterType ?? "",
|
|
60
|
+
unit: this.unit ?? "",
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* The subscription details fee for the energy service.
|
|
5
|
+
*/
|
|
6
|
+
export declare class EnergyBillV1Subscription {
|
|
7
|
+
#private;
|
|
8
|
+
/** Description or details of the subscription. */
|
|
9
|
+
description: string | null;
|
|
10
|
+
/** The end date of the subscription. */
|
|
11
|
+
endDate: string | null;
|
|
12
|
+
/** The start date of the subscription. */
|
|
13
|
+
startDate: string | null;
|
|
14
|
+
/** The rate of tax applied to the total cost. */
|
|
15
|
+
taxRate: number | null;
|
|
16
|
+
/** The total cost of subscription. */
|
|
17
|
+
total: number | null;
|
|
18
|
+
/** The price per unit of subscription. */
|
|
19
|
+
unitPrice: number | null;
|
|
20
|
+
/** Confidence score */
|
|
21
|
+
confidence: number;
|
|
22
|
+
/** The document page on which the information was found. */
|
|
23
|
+
pageId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
26
|
+
* the field in the document.
|
|
27
|
+
*/
|
|
28
|
+
polygon: Polygon;
|
|
29
|
+
constructor({ prediction }: StringDict);
|
|
30
|
+
/**
|
|
31
|
+
* Default string representation.
|
|
32
|
+
*/
|
|
33
|
+
toString(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Output in a format suitable for inclusion in an rST table.
|
|
36
|
+
*/
|
|
37
|
+
toTableLine(): string;
|
|
38
|
+
}
|