mindee 4.3.2 → 4.4.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/package.json +4 -3
  3. package/src/cli.js +52 -16
  4. package/src/client.d.ts +35 -6
  5. package/src/client.js +47 -16
  6. package/src/http/apiSettings.d.ts +15 -0
  7. package/src/http/{mindeeApi.js → apiSettings.js} +10 -13
  8. package/src/http/baseEndpoint.d.ts +27 -0
  9. package/src/http/baseEndpoint.js +65 -0
  10. package/src/http/endpoint.d.ts +27 -38
  11. package/src/http/endpoint.js +46 -60
  12. package/src/http/error.d.ts +11 -11
  13. package/src/http/error.js +29 -29
  14. package/src/http/index.d.ts +3 -2
  15. package/src/http/index.js +5 -5
  16. package/src/input/base.d.ts +7 -6
  17. package/src/input/base.js +1 -4
  18. package/src/parsing/common/apiResponse.d.ts +1 -1
  19. package/src/parsing/common/apiResponse.js +1 -1
  20. package/src/parsing/common/asyncPredictResponse.d.ts +4 -4
  21. package/src/parsing/common/asyncPredictResponse.js +8 -8
  22. package/src/parsing/common/document.d.ts +2 -0
  23. package/src/parsing/common/document.js +1 -0
  24. package/src/parsing/common/feedback/feedbackResponse.d.ts +15 -0
  25. package/src/parsing/common/feedback/feedbackResponse.js +19 -0
  26. package/src/parsing/common/index.d.ts +1 -0
  27. package/src/parsing/common/index.js +3 -1
  28. package/src/parsing/common/inference.js +9 -5
  29. package/src/parsing/common/orientation.d.ts +1 -4
  30. package/src/parsing/common/orientation.js +1 -4
  31. package/src/parsing/common/page.d.ts +2 -3
  32. package/src/parsing/common/page.js +2 -3
  33. package/src/parsing/common/predictResponse.d.ts +3 -3
  34. package/src/parsing/common/predictResponse.js +5 -5
  35. package/src/parsing/custom/listField.d.ts +8 -5
  36. package/src/parsing/custom/listField.js +11 -3
  37. package/src/parsing/standard/amount.d.ts +4 -6
  38. package/src/parsing/standard/amount.js +1 -4
  39. package/src/parsing/standard/base.d.ts +9 -4
  40. package/src/parsing/standard/base.js +2 -4
  41. package/src/parsing/standard/companyRegistration.d.ts +3 -2
  42. package/src/parsing/standard/date.d.ts +4 -6
  43. package/src/parsing/standard/date.js +1 -4
  44. package/src/parsing/standard/field.d.ts +4 -15
  45. package/src/parsing/standard/field.js +2 -6
  46. package/src/parsing/standard/index.d.ts +1 -1
  47. package/src/parsing/standard/locale.d.ts +1 -3
  48. package/src/parsing/standard/locale.js +1 -3
  49. package/src/parsing/standard/paymentDetails.d.ts +11 -8
  50. package/src/parsing/standard/paymentDetails.js +1 -8
  51. package/src/parsing/standard/position.js +4 -4
  52. package/src/parsing/standard/tax.d.ts +8 -12
  53. package/src/parsing/standard/tax.js +1 -7
  54. package/src/product/financialDocument/financialDocumentV1Document.js +2 -2
  55. package/src/product/fr/carteGrise/carteGriseV1.d.ts +16 -0
  56. package/src/product/fr/carteGrise/carteGriseV1.js +22 -0
  57. package/src/product/fr/carteGrise/carteGriseV1Document.d.ts +94 -0
  58. package/src/product/fr/carteGrise/carteGriseV1Document.js +224 -0
  59. package/src/product/fr/carteGrise/internal.d.ts +2 -0
  60. package/src/product/fr/carteGrise/internal.js +7 -0
  61. package/src/product/fr/index.d.ts +1 -0
  62. package/src/product/fr/index.js +3 -1
  63. package/src/product/fr/internal.d.ts +1 -0
  64. package/src/product/fr/internal.js +2 -1
  65. package/src/product/invoice/invoiceV4Document.d.ts +33 -32
  66. package/src/product/invoice/invoiceV4Document.js +89 -104
  67. package/src/product/invoice/invoiceV4LineItem.d.ts +16 -16
  68. package/src/product/invoice/invoiceV4LineItem.js +58 -60
  69. package/src/product/us/w9/w9V1.d.ts +1 -1
  70. package/src/product/us/w9/w9V1.js +1 -1
  71. package/src/product/us/w9/w9V1Document.d.ts +1 -1
  72. package/src/product/us/w9/w9V1Document.js +1 -1
  73. package/src/product/us/w9/w9V1Page.d.ts +1 -1
  74. package/src/product/us/w9/w9V1Page.js +1 -1
  75. package/src/http/mindeeApi.d.ts +0 -20
@@ -0,0 +1,94 @@
1
+ import { Prediction, StringDict } from "../../../parsing/common";
2
+ import { DateField, StringField } from "../../../parsing/standard";
3
+ /**
4
+ * Document data for Carte Grise, API version 1.
5
+ */
6
+ export declare class CarteGriseV1Document implements Prediction {
7
+ /** The vehicle's license plate number. */
8
+ a: StringField;
9
+ /** The vehicle's first release date. */
10
+ b: DateField;
11
+ /** The vehicle owner's full name including maiden name. */
12
+ c1: StringField;
13
+ /** The vehicle owner's address. */
14
+ c3: StringField;
15
+ /** Number of owners of the license certificate. */
16
+ c41: StringField;
17
+ /** Mentions about the ownership of the vehicle. */
18
+ c4A: StringField;
19
+ /** The vehicle's brand. */
20
+ d1: StringField;
21
+ /** The vehicle's commercial name. */
22
+ d3: StringField;
23
+ /** The Vehicle Identification Number (VIN). */
24
+ e: StringField;
25
+ /** The vehicle's maximum admissible weight. */
26
+ f1: StringField;
27
+ /** The vehicle's maximum admissible weight within the license's state. */
28
+ f2: StringField;
29
+ /** The vehicle's maximum authorized weight with coupling. */
30
+ f3: StringField;
31
+ /** The document's formula number. */
32
+ formulaNumber: StringField;
33
+ /** The vehicle's weight with coupling if tractor different than category M1. */
34
+ g: StringField;
35
+ /** The vehicle's national empty weight. */
36
+ g1: StringField;
37
+ /** The car registration date of the given certificate. */
38
+ i: DateField;
39
+ /** The vehicle's category. */
40
+ j: StringField;
41
+ /** The vehicle's national type. */
42
+ j1: StringField;
43
+ /** The vehicle's body type (CE). */
44
+ j2: StringField;
45
+ /** The vehicle's body type (National designation). */
46
+ j3: StringField;
47
+ /** Machine Readable Zone, first line. */
48
+ mrz1: StringField;
49
+ /** Machine Readable Zone, second line. */
50
+ mrz2: StringField;
51
+ /** The vehicle's owner first name. */
52
+ ownerFirstName: StringField;
53
+ /** The vehicle's owner surname. */
54
+ ownerSurname: StringField;
55
+ /** The vehicle engine's displacement (cm3). */
56
+ p1: StringField;
57
+ /** The vehicle's maximum net power (kW). */
58
+ p2: StringField;
59
+ /** The vehicle's fuel type or energy source. */
60
+ p3: StringField;
61
+ /** The vehicle's administrative power (fiscal horsepower). */
62
+ p6: StringField;
63
+ /** The vehicle's power to weight ratio. */
64
+ q: StringField;
65
+ /** The vehicle's number of seats. */
66
+ s1: StringField;
67
+ /** The vehicle's number of standing rooms (person). */
68
+ s2: StringField;
69
+ /** The vehicle's sound level (dB). */
70
+ u1: StringField;
71
+ /** The vehicle engine's rotation speed (RPM). */
72
+ u2: StringField;
73
+ /** The vehicle's CO2 emission (g/km). */
74
+ v7: StringField;
75
+ /** Next technical control date. */
76
+ x1: StringField;
77
+ /** Amount of the regional proportional tax of the registration (in euros). */
78
+ y1: StringField;
79
+ /** Amount of the additional parafiscal tax of the registration (in euros). */
80
+ y2: StringField;
81
+ /** Amount of the additional CO2 tax of the registration (in euros). */
82
+ y3: StringField;
83
+ /** Amount of the fee for managing the registration (in euros). */
84
+ y4: StringField;
85
+ /** Amount of the fee for delivery of the registration certificate in euros. */
86
+ y5: StringField;
87
+ /** Total amount of registration fee to be paid in euros. */
88
+ y6: StringField;
89
+ constructor(rawPrediction: StringDict, pageId?: number);
90
+ /**
91
+ * Default string representation.
92
+ */
93
+ toString(): string;
94
+ }
@@ -0,0 +1,224 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CarteGriseV1Document = void 0;
4
+ const common_1 = require("../../../parsing/common");
5
+ const standard_1 = require("../../../parsing/standard");
6
+ /**
7
+ * Document data for Carte Grise, API version 1.
8
+ */
9
+ class CarteGriseV1Document {
10
+ constructor(rawPrediction, pageId) {
11
+ this.a = new standard_1.StringField({
12
+ prediction: rawPrediction["a"],
13
+ pageId: pageId,
14
+ });
15
+ this.b = new standard_1.DateField({
16
+ prediction: rawPrediction["b"],
17
+ pageId: pageId,
18
+ });
19
+ this.c1 = new standard_1.StringField({
20
+ prediction: rawPrediction["c1"],
21
+ pageId: pageId,
22
+ });
23
+ this.c3 = new standard_1.StringField({
24
+ prediction: rawPrediction["c3"],
25
+ pageId: pageId,
26
+ });
27
+ this.c41 = new standard_1.StringField({
28
+ prediction: rawPrediction["c41"],
29
+ pageId: pageId,
30
+ });
31
+ this.c4A = new standard_1.StringField({
32
+ prediction: rawPrediction["c4a"],
33
+ pageId: pageId,
34
+ });
35
+ this.d1 = new standard_1.StringField({
36
+ prediction: rawPrediction["d1"],
37
+ pageId: pageId,
38
+ });
39
+ this.d3 = new standard_1.StringField({
40
+ prediction: rawPrediction["d3"],
41
+ pageId: pageId,
42
+ });
43
+ this.e = new standard_1.StringField({
44
+ prediction: rawPrediction["e"],
45
+ pageId: pageId,
46
+ });
47
+ this.f1 = new standard_1.StringField({
48
+ prediction: rawPrediction["f1"],
49
+ pageId: pageId,
50
+ });
51
+ this.f2 = new standard_1.StringField({
52
+ prediction: rawPrediction["f2"],
53
+ pageId: pageId,
54
+ });
55
+ this.f3 = new standard_1.StringField({
56
+ prediction: rawPrediction["f3"],
57
+ pageId: pageId,
58
+ });
59
+ this.formulaNumber = new standard_1.StringField({
60
+ prediction: rawPrediction["formula_number"],
61
+ pageId: pageId,
62
+ });
63
+ this.g = new standard_1.StringField({
64
+ prediction: rawPrediction["g"],
65
+ pageId: pageId,
66
+ });
67
+ this.g1 = new standard_1.StringField({
68
+ prediction: rawPrediction["g1"],
69
+ pageId: pageId,
70
+ });
71
+ this.i = new standard_1.DateField({
72
+ prediction: rawPrediction["i"],
73
+ pageId: pageId,
74
+ });
75
+ this.j = new standard_1.StringField({
76
+ prediction: rawPrediction["j"],
77
+ pageId: pageId,
78
+ });
79
+ this.j1 = new standard_1.StringField({
80
+ prediction: rawPrediction["j1"],
81
+ pageId: pageId,
82
+ });
83
+ this.j2 = new standard_1.StringField({
84
+ prediction: rawPrediction["j2"],
85
+ pageId: pageId,
86
+ });
87
+ this.j3 = new standard_1.StringField({
88
+ prediction: rawPrediction["j3"],
89
+ pageId: pageId,
90
+ });
91
+ this.mrz1 = new standard_1.StringField({
92
+ prediction: rawPrediction["mrz1"],
93
+ pageId: pageId,
94
+ });
95
+ this.mrz2 = new standard_1.StringField({
96
+ prediction: rawPrediction["mrz2"],
97
+ pageId: pageId,
98
+ });
99
+ this.ownerFirstName = new standard_1.StringField({
100
+ prediction: rawPrediction["owner_first_name"],
101
+ pageId: pageId,
102
+ });
103
+ this.ownerSurname = new standard_1.StringField({
104
+ prediction: rawPrediction["owner_surname"],
105
+ pageId: pageId,
106
+ });
107
+ this.p1 = new standard_1.StringField({
108
+ prediction: rawPrediction["p1"],
109
+ pageId: pageId,
110
+ });
111
+ this.p2 = new standard_1.StringField({
112
+ prediction: rawPrediction["p2"],
113
+ pageId: pageId,
114
+ });
115
+ this.p3 = new standard_1.StringField({
116
+ prediction: rawPrediction["p3"],
117
+ pageId: pageId,
118
+ });
119
+ this.p6 = new standard_1.StringField({
120
+ prediction: rawPrediction["p6"],
121
+ pageId: pageId,
122
+ });
123
+ this.q = new standard_1.StringField({
124
+ prediction: rawPrediction["q"],
125
+ pageId: pageId,
126
+ });
127
+ this.s1 = new standard_1.StringField({
128
+ prediction: rawPrediction["s1"],
129
+ pageId: pageId,
130
+ });
131
+ this.s2 = new standard_1.StringField({
132
+ prediction: rawPrediction["s2"],
133
+ pageId: pageId,
134
+ });
135
+ this.u1 = new standard_1.StringField({
136
+ prediction: rawPrediction["u1"],
137
+ pageId: pageId,
138
+ });
139
+ this.u2 = new standard_1.StringField({
140
+ prediction: rawPrediction["u2"],
141
+ pageId: pageId,
142
+ });
143
+ this.v7 = new standard_1.StringField({
144
+ prediction: rawPrediction["v7"],
145
+ pageId: pageId,
146
+ });
147
+ this.x1 = new standard_1.StringField({
148
+ prediction: rawPrediction["x1"],
149
+ pageId: pageId,
150
+ });
151
+ this.y1 = new standard_1.StringField({
152
+ prediction: rawPrediction["y1"],
153
+ pageId: pageId,
154
+ });
155
+ this.y2 = new standard_1.StringField({
156
+ prediction: rawPrediction["y2"],
157
+ pageId: pageId,
158
+ });
159
+ this.y3 = new standard_1.StringField({
160
+ prediction: rawPrediction["y3"],
161
+ pageId: pageId,
162
+ });
163
+ this.y4 = new standard_1.StringField({
164
+ prediction: rawPrediction["y4"],
165
+ pageId: pageId,
166
+ });
167
+ this.y5 = new standard_1.StringField({
168
+ prediction: rawPrediction["y5"],
169
+ pageId: pageId,
170
+ });
171
+ this.y6 = new standard_1.StringField({
172
+ prediction: rawPrediction["y6"],
173
+ pageId: pageId,
174
+ });
175
+ }
176
+ /**
177
+ * Default string representation.
178
+ */
179
+ toString() {
180
+ const outStr = `:a: ${this.a}
181
+ :b: ${this.b}
182
+ :c1: ${this.c1}
183
+ :c3: ${this.c3}
184
+ :c41: ${this.c41}
185
+ :c4a: ${this.c4A}
186
+ :d1: ${this.d1}
187
+ :d3: ${this.d3}
188
+ :e: ${this.e}
189
+ :f1: ${this.f1}
190
+ :f2: ${this.f2}
191
+ :f3: ${this.f3}
192
+ :g: ${this.g}
193
+ :g1: ${this.g1}
194
+ :i: ${this.i}
195
+ :j: ${this.j}
196
+ :j1: ${this.j1}
197
+ :j2: ${this.j2}
198
+ :j3: ${this.j3}
199
+ :p1: ${this.p1}
200
+ :p2: ${this.p2}
201
+ :p3: ${this.p3}
202
+ :p6: ${this.p6}
203
+ :q: ${this.q}
204
+ :s1: ${this.s1}
205
+ :s2: ${this.s2}
206
+ :u1: ${this.u1}
207
+ :u2: ${this.u2}
208
+ :v7: ${this.v7}
209
+ :x1: ${this.x1}
210
+ :y1: ${this.y1}
211
+ :y2: ${this.y2}
212
+ :y3: ${this.y3}
213
+ :y4: ${this.y4}
214
+ :y5: ${this.y5}
215
+ :y6: ${this.y6}
216
+ :Formula Number: ${this.formulaNumber}
217
+ :Owner's First Name: ${this.ownerFirstName}
218
+ :Owner's Surname: ${this.ownerSurname}
219
+ :MRZ Line 1: ${this.mrz1}
220
+ :MRZ Line 2: ${this.mrz2}`.trimEnd();
221
+ return (0, common_1.cleanOutString)(outStr);
222
+ }
223
+ }
224
+ exports.CarteGriseV1Document = CarteGriseV1Document;
@@ -0,0 +1,2 @@
1
+ export { CarteGriseV1 } from "./carteGriseV1";
2
+ export { CarteGriseV1Document } from "./carteGriseV1Document";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CarteGriseV1Document = exports.CarteGriseV1 = void 0;
4
+ var carteGriseV1_1 = require("./carteGriseV1");
5
+ Object.defineProperty(exports, "CarteGriseV1", { enumerable: true, get: function () { return carteGriseV1_1.CarteGriseV1; } });
6
+ var carteGriseV1Document_1 = require("./carteGriseV1Document");
7
+ Object.defineProperty(exports, "CarteGriseV1Document", { enumerable: true, get: function () { return carteGriseV1Document_1.CarteGriseV1Document; } });
@@ -1,5 +1,6 @@
1
1
  export { IdCardV1 } from "./idCard/idCardV1";
2
2
  export { IdCardV2 } from "./idCard/idCardV2";
3
+ export { CarteGriseV1 } from "./carteGrise/carteGriseV1";
3
4
  export { BankAccountDetailsV1 } from "./bankAccountDetails/bankAccountDetailsV1";
4
5
  export { BankAccountDetailsV2 } from "./bankAccountDetails/bankAccountDetailsV2";
5
6
  export { CarteVitaleV1 } from "./carteVitale/carteVitaleV1";
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CarteVitaleV1 = exports.BankAccountDetailsV2 = exports.BankAccountDetailsV1 = exports.IdCardV2 = exports.IdCardV1 = void 0;
3
+ exports.CarteVitaleV1 = exports.BankAccountDetailsV2 = exports.BankAccountDetailsV1 = exports.CarteGriseV1 = exports.IdCardV2 = exports.IdCardV1 = void 0;
4
4
  var idCardV1_1 = require("./idCard/idCardV1");
5
5
  Object.defineProperty(exports, "IdCardV1", { enumerable: true, get: function () { return idCardV1_1.IdCardV1; } });
6
6
  var idCardV2_1 = require("./idCard/idCardV2");
7
7
  Object.defineProperty(exports, "IdCardV2", { enumerable: true, get: function () { return idCardV2_1.IdCardV2; } });
8
+ var carteGriseV1_1 = require("./carteGrise/carteGriseV1");
9
+ Object.defineProperty(exports, "CarteGriseV1", { enumerable: true, get: function () { return carteGriseV1_1.CarteGriseV1; } });
8
10
  var bankAccountDetailsV1_1 = require("./bankAccountDetails/bankAccountDetailsV1");
9
11
  Object.defineProperty(exports, "BankAccountDetailsV1", { enumerable: true, get: function () { return bankAccountDetailsV1_1.BankAccountDetailsV1; } });
10
12
  var bankAccountDetailsV2_1 = require("./bankAccountDetails/bankAccountDetailsV2");
@@ -1,3 +1,4 @@
1
1
  export * as bankAccountDetails from "./bankAccountDetails/internal";
2
2
  export * as carteVitale from "./carteVitale/internal";
3
3
  export * as idCard from "./idCard/internal";
4
+ export * as carteGrise from "./carteGrise/internal";
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.idCard = exports.carteVitale = exports.bankAccountDetails = void 0;
26
+ exports.carteGrise = exports.idCard = exports.carteVitale = exports.bankAccountDetails = void 0;
27
27
  exports.bankAccountDetails = __importStar(require("./bankAccountDetails/internal"));
28
28
  exports.carteVitale = __importStar(require("./carteVitale/internal"));
29
29
  exports.idCard = __importStar(require("./idCard/internal"));
30
+ exports.carteGrise = __importStar(require("./carteGrise/internal"));
@@ -1,46 +1,47 @@
1
1
  import { Prediction, StringDict } from "../../parsing/common";
2
- import { ClassificationField, Taxes, PaymentDetailsField, LocaleField, AmountField, StringField, DateField, CompanyRegistrationField } from "../../parsing/standard";
3
2
  import { InvoiceV4LineItem } from "./invoiceV4LineItem";
3
+ import { AmountField, ClassificationField, CompanyRegistrationField, DateField, LocaleField, PaymentDetailsField, StringField, Taxes } from "../../parsing/standard";
4
4
  /**
5
5
  * Document data for Invoice, API version 4.
6
6
  */
7
7
  export declare class InvoiceV4Document implements Prediction {
8
- /** LocaleField information. */
9
- locale: LocaleField;
10
- /** The nature of the invoice. */
11
- documentType: ClassificationField;
12
- /** List of Reference numbers including PO number. */
13
- referenceNumbers: StringField[];
14
- /** The total amount with tax included. */
15
- totalAmount: AmountField;
16
- /** The creation date of the invoice. */
8
+ /** The address of the customer. */
9
+ customerAddress: StringField;
10
+ /** List of company registrations associated to the customer. */
11
+ customerCompanyRegistrations: CompanyRegistrationField[];
12
+ /** The name of the customer or client. */
13
+ customerName: StringField;
14
+ /** The date the purchase was made. */
17
15
  date: DateField;
18
- /** The due date of the invoice. */
16
+ /** One of: 'INVOICE', 'CREDIT NOTE'. */
17
+ documentType: ClassificationField;
18
+ /** The date on which the payment is due. */
19
19
  dueDate: DateField;
20
- /** The total tax. */
21
- totalTax: AmountField;
22
- /** The total amount without the tax value. */
23
- totalNet: AmountField;
24
- /** The supplier name. */
25
- supplierName: StringField;
26
- /** The supplier address. */
20
+ /** The invoice number or identifier. */
21
+ invoiceNumber: StringField;
22
+ /** List of line item details. */
23
+ lineItems: InvoiceV4LineItem[];
24
+ /** The locale detected on the document. */
25
+ locale: LocaleField;
26
+ /** List of Reference numbers, including PO number. */
27
+ referenceNumbers: StringField[];
28
+ /** The address of the supplier or merchant. */
27
29
  supplierAddress: StringField;
28
- /** The payment information. */
29
- supplierPaymentDetails: PaymentDetailsField[];
30
- /** The supplier company registration information. */
30
+ /** List of company registrations associated to the supplier. */
31
31
  supplierCompanyRegistrations: CompanyRegistrationField[];
32
- /** The invoice number. */
33
- invoiceNumber: StringField;
34
- /** The name of the customer. */
35
- customerName: StringField;
36
- /** The address of the customer. */
37
- customerAddress: StringField;
38
- /** The company registration information for the customer. */
39
- customerCompanyRegistrations: CompanyRegistrationField[];
40
- /** The list of the taxes. */
32
+ /** The name of the supplier or merchant. */
33
+ supplierName: StringField;
34
+ /** List of payment details associated to the supplier. */
35
+ supplierPaymentDetails: PaymentDetailsField[];
36
+ /** List of tax line details. */
41
37
  taxes: Taxes;
42
- /** Line items details. */
43
- lineItems: InvoiceV4LineItem[];
38
+ /** The total amount paid: includes taxes, tips, fees, and other charges. */
39
+ totalAmount: AmountField;
40
+ /** The net amount paid: does not include taxes, fees, and discounts. */
41
+ totalNet: AmountField;
44
42
  constructor(rawPrediction: StringDict, pageId?: number);
43
+ /**
44
+ * Default string representation.
45
+ */
45
46
  toString(): string;
46
47
  }