mindee 4.10.0 → 4.12.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 (100) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +1 -1
  3. package/src/product/barcodeReader/barcodeReaderV1.d.ts +1 -1
  4. package/src/product/barcodeReader/barcodeReaderV1.js +1 -1
  5. package/src/product/barcodeReader/barcodeReaderV1Document.d.ts +1 -1
  6. package/src/product/barcodeReader/barcodeReaderV1Document.js +1 -1
  7. package/src/product/cropper/cropperV1.d.ts +1 -1
  8. package/src/product/cropper/cropperV1.js +1 -1
  9. package/src/product/cropper/cropperV1Document.d.ts +1 -1
  10. package/src/product/cropper/cropperV1Document.js +1 -1
  11. package/src/product/cropper/cropperV1Page.d.ts +1 -1
  12. package/src/product/cropper/cropperV1Page.js +1 -1
  13. package/src/product/eu/driverLicense/driverLicenseV1.d.ts +1 -1
  14. package/src/product/eu/driverLicense/driverLicenseV1.js +1 -1
  15. package/src/product/eu/driverLicense/driverLicenseV1Document.d.ts +1 -1
  16. package/src/product/eu/driverLicense/driverLicenseV1Document.js +1 -1
  17. package/src/product/eu/driverLicense/driverLicenseV1Page.d.ts +1 -1
  18. package/src/product/eu/driverLicense/driverLicenseV1Page.js +1 -1
  19. package/src/product/eu/licensePlate/licensePlateV1.d.ts +1 -1
  20. package/src/product/eu/licensePlate/licensePlateV1.js +1 -1
  21. package/src/product/eu/licensePlate/licensePlateV1Document.d.ts +1 -1
  22. package/src/product/eu/licensePlate/licensePlateV1Document.js +1 -1
  23. package/src/product/financialDocument/financialDocumentV1.d.ts +1 -1
  24. package/src/product/financialDocument/financialDocumentV1.js +1 -1
  25. package/src/product/financialDocument/financialDocumentV1Document.d.ts +16 -2
  26. package/src/product/financialDocument/financialDocumentV1Document.js +36 -1
  27. package/src/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +1 -1
  28. package/src/product/fr/bankAccountDetails/bankAccountDetailsV1.js +1 -1
  29. package/src/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +1 -1
  30. package/src/product/fr/bankAccountDetails/bankAccountDetailsV1Document.js +1 -1
  31. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +1 -1
  32. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2.js +1 -1
  33. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Document.d.ts +1 -1
  34. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Document.js +1 -1
  35. package/src/product/fr/carteGrise/carteGriseV1.d.ts +1 -1
  36. package/src/product/fr/carteGrise/carteGriseV1.js +1 -1
  37. package/src/product/fr/carteGrise/carteGriseV1Document.d.ts +1 -1
  38. package/src/product/fr/carteGrise/carteGriseV1Document.js +1 -1
  39. package/src/product/fr/carteVitale/carteVitaleV1.d.ts +1 -1
  40. package/src/product/fr/carteVitale/carteVitaleV1.js +1 -1
  41. package/src/product/fr/carteVitale/carteVitaleV1Document.d.ts +1 -1
  42. package/src/product/fr/carteVitale/carteVitaleV1Document.js +1 -1
  43. package/src/product/fr/idCard/idCardV1.d.ts +1 -1
  44. package/src/product/fr/idCard/idCardV1.js +1 -1
  45. package/src/product/fr/idCard/idCardV1Document.d.ts +1 -1
  46. package/src/product/fr/idCard/idCardV1Document.js +1 -1
  47. package/src/product/fr/idCard/idCardV1Page.d.ts +1 -1
  48. package/src/product/fr/idCard/idCardV1Page.js +1 -1
  49. package/src/product/fr/idCard/idCardV2.d.ts +1 -1
  50. package/src/product/fr/idCard/idCardV2.js +1 -1
  51. package/src/product/fr/idCard/idCardV2Document.d.ts +1 -1
  52. package/src/product/fr/idCard/idCardV2Document.js +1 -1
  53. package/src/product/fr/idCard/idCardV2Page.d.ts +1 -1
  54. package/src/product/fr/idCard/idCardV2Page.js +1 -1
  55. package/src/product/internationalId/internationalIdV2.d.ts +1 -1
  56. package/src/product/internationalId/internationalIdV2.js +1 -1
  57. package/src/product/internationalId/internationalIdV2Document.d.ts +1 -1
  58. package/src/product/internationalId/internationalIdV2Document.js +1 -1
  59. package/src/product/invoice/invoiceV4.d.ts +1 -1
  60. package/src/product/invoice/invoiceV4.js +1 -1
  61. package/src/product/invoice/invoiceV4Document.d.ts +9 -1
  62. package/src/product/invoice/invoiceV4Document.js +21 -1
  63. package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1.d.ts +1 -1
  64. package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +1 -1
  65. package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +1 -1
  66. package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +1 -1
  67. package/src/product/passport/passportV1.d.ts +1 -1
  68. package/src/product/passport/passportV1.js +1 -1
  69. package/src/product/passport/passportV1Document.d.ts +1 -1
  70. package/src/product/passport/passportV1Document.js +1 -1
  71. package/src/product/proofOfAddress/proofOfAddressV1.d.ts +1 -1
  72. package/src/product/proofOfAddress/proofOfAddressV1.js +1 -1
  73. package/src/product/proofOfAddress/proofOfAddressV1Document.d.ts +1 -1
  74. package/src/product/proofOfAddress/proofOfAddressV1Document.js +1 -1
  75. package/src/product/receipt/receiptV5.d.ts +1 -1
  76. package/src/product/receipt/receiptV5.js +1 -1
  77. package/src/product/receipt/receiptV5Document.d.ts +3 -1
  78. package/src/product/receipt/receiptV5Document.js +6 -1
  79. package/src/product/resume/resumeV1.d.ts +1 -1
  80. package/src/product/resume/resumeV1.js +1 -1
  81. package/src/product/resume/resumeV1Document.d.ts +1 -1
  82. package/src/product/resume/resumeV1Document.js +1 -1
  83. package/src/product/us/bankCheck/bankCheckV1.d.ts +1 -1
  84. package/src/product/us/bankCheck/bankCheckV1.js +1 -1
  85. package/src/product/us/bankCheck/bankCheckV1Document.d.ts +1 -1
  86. package/src/product/us/bankCheck/bankCheckV1Document.js +1 -1
  87. package/src/product/us/bankCheck/bankCheckV1Page.d.ts +1 -1
  88. package/src/product/us/bankCheck/bankCheckV1Page.js +1 -1
  89. package/src/product/us/driverLicense/driverLicenseV1.d.ts +1 -1
  90. package/src/product/us/driverLicense/driverLicenseV1.js +1 -1
  91. package/src/product/us/driverLicense/driverLicenseV1Document.d.ts +1 -1
  92. package/src/product/us/driverLicense/driverLicenseV1Document.js +1 -1
  93. package/src/product/us/driverLicense/driverLicenseV1Page.d.ts +1 -1
  94. package/src/product/us/driverLicense/driverLicenseV1Page.js +1 -1
  95. package/src/product/us/w9/w9V1.d.ts +1 -1
  96. package/src/product/us/w9/w9V1.js +1 -1
  97. package/src/product/us/w9/w9V1Document.d.ts +1 -1
  98. package/src/product/us/w9/w9V1Document.js +1 -1
  99. package/src/product/us/w9/w9V1Page.d.ts +1 -1
  100. package/src/product/us/w9/w9V1Page.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v4.12.0 - 2024-05-16
4
+ ### Changes
5
+ * :sparkles: update receipt to 5.2 and financial document to 1.7 (#270)
6
+
7
+
8
+ # v4.11.0 - 2024-04-30
9
+ ### Changes
10
+ * :sparkles: update invoice to 4.6 & financial document to 1.6 (#269)
11
+
12
+
3
13
  # v4.10.0 - 2024-04-12
4
14
  ### Changes
5
15
  * :sparkles: update Invoice to v4.5 (#264)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindee",
3
- "version": "4.10.0",
3
+ "version": "4.12.0",
4
4
  "description": "Mindee Client Library for Node.js",
5
5
  "main": "src/index.js",
6
6
  "bin": "bin/mindee.js",
@@ -1,7 +1,7 @@
1
1
  import { Inference, StringDict, Page } from "../../parsing/common";
2
2
  import { BarcodeReaderV1Document } from "./barcodeReaderV1Document";
3
3
  /**
4
- * Inference prediction for Barcode Reader, API version 1.
4
+ * Barcode Reader API version 1 inference prediction.
5
5
  */
6
6
  export declare class BarcodeReaderV1 extends Inference {
7
7
  /** The endpoint's name. */
@@ -4,7 +4,7 @@ exports.BarcodeReaderV1 = void 0;
4
4
  const common_1 = require("../../parsing/common");
5
5
  const barcodeReaderV1Document_1 = require("./barcodeReaderV1Document");
6
6
  /**
7
- * Inference prediction for Barcode Reader, API version 1.
7
+ * Barcode Reader API version 1 inference prediction.
8
8
  */
9
9
  class BarcodeReaderV1 extends common_1.Inference {
10
10
  constructor(rawPrediction) {
@@ -1,7 +1,7 @@
1
1
  import { Prediction, StringDict } from "../../parsing/common";
2
2
  import { StringField } from "../../parsing/standard";
3
3
  /**
4
- * Document data for Barcode Reader, API version 1.
4
+ * Barcode Reader API version 1.0 document data.
5
5
  */
6
6
  export declare class BarcodeReaderV1Document implements Prediction {
7
7
  /** List of decoded 1D barcodes. */
@@ -4,7 +4,7 @@ exports.BarcodeReaderV1Document = void 0;
4
4
  const common_1 = require("../../parsing/common");
5
5
  const standard_1 = require("../../parsing/standard");
6
6
  /**
7
- * Document data for Barcode Reader, API version 1.
7
+ * Barcode Reader API version 1.0 document data.
8
8
  */
9
9
  class BarcodeReaderV1Document {
10
10
  constructor(rawPrediction, pageId) {
@@ -2,7 +2,7 @@ import { Inference, StringDict, Page } from "../../parsing/common";
2
2
  import { CropperV1Document } from "./cropperV1Document";
3
3
  import { CropperV1Page } from "./cropperV1Page";
4
4
  /**
5
- * Inference prediction for Cropper, API version 1.
5
+ * Cropper API version 1 inference prediction.
6
6
  */
7
7
  export declare class CropperV1 extends Inference {
8
8
  /** The endpoint's name. */
@@ -5,7 +5,7 @@ const common_1 = require("../../parsing/common");
5
5
  const cropperV1Document_1 = require("./cropperV1Document");
6
6
  const cropperV1Page_1 = require("./cropperV1Page");
7
7
  /**
8
- * Inference prediction for Cropper, API version 1.
8
+ * Cropper API version 1 inference prediction.
9
9
  */
10
10
  class CropperV1 extends common_1.Inference {
11
11
  constructor(rawPrediction) {
@@ -1,6 +1,6 @@
1
1
  import { Prediction } from "../../parsing/common";
2
2
  /**
3
- * Document data for Cropper, API version 1.
3
+ * Cropper API version 1.1 document data.
4
4
  */
5
5
  export declare class CropperV1Document implements Prediction {
6
6
  /**
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CropperV1Document = void 0;
4
4
  /**
5
- * Document data for Cropper, API version 1.
5
+ * Cropper API version 1.1 document data.
6
6
  */
7
7
  class CropperV1Document {
8
8
  /**
@@ -2,7 +2,7 @@ import { StringDict } from "../../parsing/common";
2
2
  import { PositionField } from "../../parsing/standard";
3
3
  import { CropperV1Document } from "./cropperV1Document";
4
4
  /**
5
- * Page data for Cropper, API version 1.
5
+ * Cropper API version 1.1 page data.
6
6
  */
7
7
  export declare class CropperV1Page extends CropperV1Document {
8
8
  /** List of documents found in the image. */
@@ -5,7 +5,7 @@ const common_1 = require("../../parsing/common");
5
5
  const standard_1 = require("../../parsing/standard");
6
6
  const cropperV1Document_1 = require("./cropperV1Document");
7
7
  /**
8
- * Page data for Cropper, API version 1.
8
+ * Cropper API version 1.1 page data.
9
9
  */
10
10
  class CropperV1Page extends cropperV1Document_1.CropperV1Document {
11
11
  constructor(rawPrediction, pageId) {
@@ -2,7 +2,7 @@ import { Inference, StringDict, Page } from "../../../parsing/common";
2
2
  import { DriverLicenseV1Document } from "./driverLicenseV1Document";
3
3
  import { DriverLicenseV1Page } from "./driverLicenseV1Page";
4
4
  /**
5
- * Inference prediction for Driver License, API version 1.
5
+ * Driver License API version 1 inference prediction.
6
6
  */
7
7
  export declare class DriverLicenseV1 extends Inference {
8
8
  /** The endpoint's name. */
@@ -5,7 +5,7 @@ const common_1 = require("../../../parsing/common");
5
5
  const driverLicenseV1Document_1 = require("./driverLicenseV1Document");
6
6
  const driverLicenseV1Page_1 = require("./driverLicenseV1Page");
7
7
  /**
8
- * Inference prediction for Driver License, API version 1.
8
+ * Driver License API version 1 inference prediction.
9
9
  */
10
10
  class DriverLicenseV1 extends common_1.Inference {
11
11
  constructor(rawPrediction) {
@@ -1,7 +1,7 @@
1
1
  import { Prediction, StringDict } from "../../../parsing/common";
2
2
  import { DateField, StringField } from "../../../parsing/standard";
3
3
  /**
4
- * Document data for Driver License, API version 1.
4
+ * Driver License API version 1.0 document data.
5
5
  */
6
6
  export declare class DriverLicenseV1Document implements Prediction {
7
7
  /** EU driver license holders address */
@@ -4,7 +4,7 @@ exports.DriverLicenseV1Document = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const standard_1 = require("../../../parsing/standard");
6
6
  /**
7
- * Document data for Driver License, API version 1.
7
+ * Driver License API version 1.0 document data.
8
8
  */
9
9
  class DriverLicenseV1Document {
10
10
  constructor(rawPrediction, pageId) {
@@ -2,7 +2,7 @@ import { StringDict } from "../../../parsing/common";
2
2
  import { PositionField } from "../../../parsing/standard";
3
3
  import { DriverLicenseV1Document } from "./driverLicenseV1Document";
4
4
  /**
5
- * Page data for Driver License, API version 1.
5
+ * Driver License API version 1.0 page data.
6
6
  */
7
7
  export declare class DriverLicenseV1Page extends DriverLicenseV1Document {
8
8
  /** Has a photo of the EU driver license holder */
@@ -5,7 +5,7 @@ const common_1 = require("../../../parsing/common");
5
5
  const standard_1 = require("../../../parsing/standard");
6
6
  const driverLicenseV1Document_1 = require("./driverLicenseV1Document");
7
7
  /**
8
- * Page data for Driver License, API version 1.
8
+ * Driver License API version 1.0 page data.
9
9
  */
10
10
  class DriverLicenseV1Page extends driverLicenseV1Document_1.DriverLicenseV1Document {
11
11
  constructor(rawPrediction, pageId) {
@@ -1,7 +1,7 @@
1
1
  import { Inference, StringDict, Page } from "../../../parsing/common";
2
2
  import { LicensePlateV1Document } from "./licensePlateV1Document";
3
3
  /**
4
- * Inference prediction for License Plate, API version 1.
4
+ * License Plate API version 1 inference prediction.
5
5
  */
6
6
  export declare class LicensePlateV1 extends Inference {
7
7
  /** The endpoint's name. */
@@ -4,7 +4,7 @@ exports.LicensePlateV1 = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const licensePlateV1Document_1 = require("./licensePlateV1Document");
6
6
  /**
7
- * Inference prediction for License Plate, API version 1.
7
+ * License Plate API version 1 inference prediction.
8
8
  */
9
9
  class LicensePlateV1 extends common_1.Inference {
10
10
  constructor(rawPrediction) {
@@ -1,7 +1,7 @@
1
1
  import { Prediction, StringDict } from "../../../parsing/common";
2
2
  import { StringField } from "../../../parsing/standard";
3
3
  /**
4
- * Document data for License Plate, API version 1.
4
+ * License Plate API version 1.1 document data.
5
5
  */
6
6
  export declare class LicensePlateV1Document implements Prediction {
7
7
  /** List of all license plates found in the image. */
@@ -4,7 +4,7 @@ exports.LicensePlateV1Document = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const standard_1 = require("../../../parsing/standard");
6
6
  /**
7
- * Document data for License Plate, API version 1.
7
+ * License Plate API version 1.1 document data.
8
8
  */
9
9
  class LicensePlateV1Document {
10
10
  constructor(rawPrediction, pageId) {
@@ -1,7 +1,7 @@
1
1
  import { Inference, StringDict, Page } from "../../parsing/common";
2
2
  import { FinancialDocumentV1Document } from "./financialDocumentV1Document";
3
3
  /**
4
- * Inference prediction for Financial Document, API version 1.
4
+ * Financial Document API version 1 inference prediction.
5
5
  */
6
6
  export declare class FinancialDocumentV1 extends Inference {
7
7
  /** The endpoint's name. */
@@ -4,7 +4,7 @@ exports.FinancialDocumentV1 = void 0;
4
4
  const common_1 = require("../../parsing/common");
5
5
  const financialDocumentV1Document_1 = require("./financialDocumentV1Document");
6
6
  /**
7
- * Inference prediction for Financial Document, API version 1.
7
+ * Financial Document API version 1 inference prediction.
8
8
  */
9
9
  class FinancialDocumentV1 extends common_1.Inference {
10
10
  constructor(rawPrediction) {
@@ -2,43 +2,57 @@ import { Prediction, StringDict } from "../../parsing/common";
2
2
  import { FinancialDocumentV1LineItem } from "./financialDocumentV1LineItem";
3
3
  import { AmountField, ClassificationField, CompanyRegistrationField, DateField, LocaleField, PaymentDetailsField, StringField, Taxes } from "../../parsing/standard";
4
4
  /**
5
- * Document data for Financial Document, API version 1.
5
+ * Financial Document API version 1.7 document data.
6
6
  */
7
7
  export declare class FinancialDocumentV1Document implements Prediction {
8
+ /** The customer's address used for billing. */
9
+ billingAddress: StringField;
8
10
  /** The purchase category among predefined classes. */
9
11
  category: ClassificationField;
10
12
  /** The address of the customer. */
11
13
  customerAddress: StringField;
12
14
  /** List of company registrations associated to the customer. */
13
15
  customerCompanyRegistrations: CompanyRegistrationField[];
16
+ /** The customer account number or identifier from the supplier. */
17
+ customerId: StringField;
14
18
  /** The name of the customer. */
15
19
  customerName: StringField;
16
20
  /** The date the purchase was made. */
17
21
  date: DateField;
22
+ /** The document number or identifier. */
23
+ documentNumber: StringField;
18
24
  /** One of: 'INVOICE', 'CREDIT NOTE', 'CREDIT CARD RECEIPT', 'EXPENSE RECEIPT'. */
19
25
  documentType: ClassificationField;
20
26
  /** The date on which the payment is due. */
21
27
  dueDate: DateField;
22
- /** The invoice number or identifier. */
28
+ /** The invoice number or identifier only if document is an invoice. */
23
29
  invoiceNumber: StringField;
24
30
  /** List of line item details. */
25
31
  lineItems: FinancialDocumentV1LineItem[];
26
32
  /** The locale detected on the document. */
27
33
  locale: LocaleField;
34
+ /** The receipt number or identifier only if document is a receipt. */
35
+ receiptNumber: StringField;
28
36
  /** List of Reference numbers, including PO number. */
29
37
  referenceNumbers: StringField[];
38
+ /** The customer's address used for shipping. */
39
+ shippingAddress: StringField;
30
40
  /** The purchase subcategory among predefined classes for transport and food. */
31
41
  subcategory: ClassificationField;
32
42
  /** The address of the supplier or merchant. */
33
43
  supplierAddress: StringField;
34
44
  /** List of company registrations associated to the supplier. */
35
45
  supplierCompanyRegistrations: CompanyRegistrationField[];
46
+ /** The email of the supplier or merchant. */
47
+ supplierEmail: StringField;
36
48
  /** The name of the supplier or merchant. */
37
49
  supplierName: StringField;
38
50
  /** List of payment details associated to the supplier. */
39
51
  supplierPaymentDetails: PaymentDetailsField[];
40
52
  /** The phone number of the supplier or merchant. */
41
53
  supplierPhoneNumber: StringField;
54
+ /** The website URL of the supplier or merchant. */
55
+ supplierWebsite: StringField;
42
56
  /** List of tax lines information. */
43
57
  taxes: Taxes;
44
58
  /** The time the purchase was made. */
@@ -5,7 +5,7 @@ const common_1 = require("../../parsing/common");
5
5
  const financialDocumentV1LineItem_1 = require("./financialDocumentV1LineItem");
6
6
  const standard_1 = require("../../parsing/standard");
7
7
  /**
8
- * Document data for Financial Document, API version 1.
8
+ * Financial Document API version 1.7 document data.
9
9
  */
10
10
  class FinancialDocumentV1Document {
11
11
  constructor(rawPrediction, pageId) {
@@ -19,6 +19,10 @@ class FinancialDocumentV1Document {
19
19
  this.supplierCompanyRegistrations = [];
20
20
  /** List of payment details associated to the supplier. */
21
21
  this.supplierPaymentDetails = [];
22
+ this.billingAddress = new standard_1.StringField({
23
+ prediction: rawPrediction["billing_address"],
24
+ pageId: pageId,
25
+ });
22
26
  this.category = new standard_1.ClassificationField({
23
27
  prediction: rawPrediction["category"],
24
28
  });
@@ -31,6 +35,10 @@ class FinancialDocumentV1Document {
31
35
  prediction: itemPrediction,
32
36
  pageId: pageId,
33
37
  })));
38
+ this.customerId = new standard_1.StringField({
39
+ prediction: rawPrediction["customer_id"],
40
+ pageId: pageId,
41
+ });
34
42
  this.customerName = new standard_1.StringField({
35
43
  prediction: rawPrediction["customer_name"],
36
44
  pageId: pageId,
@@ -39,6 +47,10 @@ class FinancialDocumentV1Document {
39
47
  prediction: rawPrediction["date"],
40
48
  pageId: pageId,
41
49
  });
50
+ this.documentNumber = new standard_1.StringField({
51
+ prediction: rawPrediction["document_number"],
52
+ pageId: pageId,
53
+ });
42
54
  this.documentType = new standard_1.ClassificationField({
43
55
  prediction: rawPrediction["document_type"],
44
56
  });
@@ -58,11 +70,19 @@ class FinancialDocumentV1Document {
58
70
  this.locale = new standard_1.LocaleField({
59
71
  prediction: rawPrediction["locale"],
60
72
  });
73
+ this.receiptNumber = new standard_1.StringField({
74
+ prediction: rawPrediction["receipt_number"],
75
+ pageId: pageId,
76
+ });
61
77
  rawPrediction["reference_numbers"] &&
62
78
  rawPrediction["reference_numbers"].map((itemPrediction) => this.referenceNumbers.push(new standard_1.StringField({
63
79
  prediction: itemPrediction,
64
80
  pageId: pageId,
65
81
  })));
82
+ this.shippingAddress = new standard_1.StringField({
83
+ prediction: rawPrediction["shipping_address"],
84
+ pageId: pageId,
85
+ });
66
86
  this.subcategory = new standard_1.ClassificationField({
67
87
  prediction: rawPrediction["subcategory"],
68
88
  });
@@ -75,6 +95,10 @@ class FinancialDocumentV1Document {
75
95
  prediction: itemPrediction,
76
96
  pageId: pageId,
77
97
  })));
98
+ this.supplierEmail = new standard_1.StringField({
99
+ prediction: rawPrediction["supplier_email"],
100
+ pageId: pageId,
101
+ });
78
102
  this.supplierName = new standard_1.StringField({
79
103
  prediction: rawPrediction["supplier_name"],
80
104
  pageId: pageId,
@@ -88,6 +112,10 @@ class FinancialDocumentV1Document {
88
112
  prediction: rawPrediction["supplier_phone_number"],
89
113
  pageId: pageId,
90
114
  });
115
+ this.supplierWebsite = new standard_1.StringField({
116
+ prediction: rawPrediction["supplier_website"],
117
+ pageId: pageId,
118
+ });
91
119
  this.taxes = new standard_1.Taxes().init(rawPrediction["taxes"], pageId);
92
120
  this.time = new standard_1.StringField({
93
121
  prediction: rawPrediction["time"],
@@ -134,6 +162,8 @@ class FinancialDocumentV1Document {
134
162
  }
135
163
  const outStr = `:Locale: ${this.locale}
136
164
  :Invoice Number: ${this.invoiceNumber}
165
+ :Receipt Number: ${this.receiptNumber}
166
+ :Document Number: ${this.documentNumber}
137
167
  :Reference Numbers: ${referenceNumbers}
138
168
  :Purchase Date: ${this.date}
139
169
  :Due Date: ${this.dueDate}
@@ -146,8 +176,13 @@ class FinancialDocumentV1Document {
146
176
  :Supplier Address: ${this.supplierAddress}
147
177
  :Supplier Phone Number: ${this.supplierPhoneNumber}
148
178
  :Customer Name: ${this.customerName}
179
+ :Supplier Website: ${this.supplierWebsite}
180
+ :Supplier Email: ${this.supplierEmail}
149
181
  :Customer Company Registrations: ${customerCompanyRegistrations}
150
182
  :Customer Address: ${this.customerAddress}
183
+ :Customer ID: ${this.customerId}
184
+ :Shipping Address: ${this.shippingAddress}
185
+ :Billing Address: ${this.billingAddress}
151
186
  :Document Type: ${this.documentType}
152
187
  :Purchase Subcategory: ${this.subcategory}
153
188
  :Purchase Category: ${this.category}
@@ -1,7 +1,7 @@
1
1
  import { Inference, StringDict, Page } from "../../../parsing/common";
2
2
  import { BankAccountDetailsV1Document } from "./bankAccountDetailsV1Document";
3
3
  /**
4
- * Inference prediction for Bank Account Details, API version 1.
4
+ * Bank Account Details API version 1 inference prediction.
5
5
  */
6
6
  export declare class BankAccountDetailsV1 extends Inference {
7
7
  /** The endpoint's name. */
@@ -4,7 +4,7 @@ exports.BankAccountDetailsV1 = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const bankAccountDetailsV1Document_1 = require("./bankAccountDetailsV1Document");
6
6
  /**
7
- * Inference prediction for Bank Account Details, API version 1.
7
+ * Bank Account Details API version 1 inference prediction.
8
8
  */
9
9
  class BankAccountDetailsV1 extends common_1.Inference {
10
10
  constructor(rawPrediction) {
@@ -1,7 +1,7 @@
1
1
  import { Prediction, StringDict } from "../../../parsing/common";
2
2
  import { StringField } from "../../../parsing/standard";
3
3
  /**
4
- * Document data for Bank Account Details, API version 1.
4
+ * Bank Account Details API version 1.0 document data.
5
5
  */
6
6
  export declare class BankAccountDetailsV1Document implements Prediction {
7
7
  /** The name of the account holder as seen on the document. */
@@ -4,7 +4,7 @@ exports.BankAccountDetailsV1Document = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const standard_1 = require("../../../parsing/standard");
6
6
  /**
7
- * Document data for Bank Account Details, API version 1.
7
+ * Bank Account Details API version 1.0 document data.
8
8
  */
9
9
  class BankAccountDetailsV1Document {
10
10
  constructor(rawPrediction, pageId) {
@@ -1,7 +1,7 @@
1
1
  import { Inference, StringDict, Page } from "../../../parsing/common";
2
2
  import { BankAccountDetailsV2Document } from "./bankAccountDetailsV2Document";
3
3
  /**
4
- * Inference prediction for Bank Account Details, API version 2.
4
+ * Bank Account Details API version 2 inference prediction.
5
5
  */
6
6
  export declare class BankAccountDetailsV2 extends Inference {
7
7
  /** The endpoint's name. */
@@ -4,7 +4,7 @@ exports.BankAccountDetailsV2 = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const bankAccountDetailsV2Document_1 = require("./bankAccountDetailsV2Document");
6
6
  /**
7
- * Inference prediction for Bank Account Details, API version 2.
7
+ * Bank Account Details API version 2 inference prediction.
8
8
  */
9
9
  class BankAccountDetailsV2 extends common_1.Inference {
10
10
  constructor(rawPrediction) {
@@ -2,7 +2,7 @@ import { Prediction, StringDict } from "../../../parsing/common";
2
2
  import { BankAccountDetailsV2Bban } from "./bankAccountDetailsV2Bban";
3
3
  import { StringField } from "../../../parsing/standard";
4
4
  /**
5
- * Document data for Bank Account Details, API version 2.
5
+ * Bank Account Details API version 2.0 document data.
6
6
  */
7
7
  export declare class BankAccountDetailsV2Document implements Prediction {
8
8
  /** Full extraction of the account holders names. */
@@ -5,7 +5,7 @@ const common_1 = require("../../../parsing/common");
5
5
  const bankAccountDetailsV2Bban_1 = require("./bankAccountDetailsV2Bban");
6
6
  const standard_1 = require("../../../parsing/standard");
7
7
  /**
8
- * Document data for Bank Account Details, API version 2.
8
+ * Bank Account Details API version 2.0 document data.
9
9
  */
10
10
  class BankAccountDetailsV2Document {
11
11
  constructor(rawPrediction, pageId) {
@@ -1,7 +1,7 @@
1
1
  import { Inference, StringDict, Page } from "../../../parsing/common";
2
2
  import { CarteGriseV1Document } from "./carteGriseV1Document";
3
3
  /**
4
- * Inference prediction for Carte Grise, API version 1.
4
+ * Carte Grise API version 1 inference prediction.
5
5
  */
6
6
  export declare class CarteGriseV1 extends Inference {
7
7
  /** The endpoint's name. */
@@ -4,7 +4,7 @@ exports.CarteGriseV1 = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const carteGriseV1Document_1 = require("./carteGriseV1Document");
6
6
  /**
7
- * Inference prediction for Carte Grise, API version 1.
7
+ * Carte Grise API version 1 inference prediction.
8
8
  */
9
9
  class CarteGriseV1 extends common_1.Inference {
10
10
  constructor(rawPrediction) {
@@ -1,7 +1,7 @@
1
1
  import { Prediction, StringDict } from "../../../parsing/common";
2
2
  import { DateField, StringField } from "../../../parsing/standard";
3
3
  /**
4
- * Document data for Carte Grise, API version 1.
4
+ * Carte Grise API version 1.1 document data.
5
5
  */
6
6
  export declare class CarteGriseV1Document implements Prediction {
7
7
  /** The vehicle's license plate number. */
@@ -4,7 +4,7 @@ exports.CarteGriseV1Document = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const standard_1 = require("../../../parsing/standard");
6
6
  /**
7
- * Document data for Carte Grise, API version 1.
7
+ * Carte Grise API version 1.1 document data.
8
8
  */
9
9
  class CarteGriseV1Document {
10
10
  constructor(rawPrediction, pageId) {
@@ -1,7 +1,7 @@
1
1
  import { Inference, StringDict, Page } from "../../../parsing/common";
2
2
  import { CarteVitaleV1Document } from "./carteVitaleV1Document";
3
3
  /**
4
- * Inference prediction for Carte Vitale, API version 1.
4
+ * Carte Vitale API version 1 inference prediction.
5
5
  */
6
6
  export declare class CarteVitaleV1 extends Inference {
7
7
  /** The endpoint's name. */
@@ -4,7 +4,7 @@ exports.CarteVitaleV1 = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const carteVitaleV1Document_1 = require("./carteVitaleV1Document");
6
6
  /**
7
- * Inference prediction for Carte Vitale, API version 1.
7
+ * Carte Vitale API version 1 inference prediction.
8
8
  */
9
9
  class CarteVitaleV1 extends common_1.Inference {
10
10
  constructor(rawPrediction) {
@@ -1,7 +1,7 @@
1
1
  import { Prediction, StringDict } from "../../../parsing/common";
2
2
  import { DateField, StringField } from "../../../parsing/standard";
3
3
  /**
4
- * Document data for Carte Vitale, API version 1.
4
+ * Carte Vitale API version 1.1 document data.
5
5
  */
6
6
  export declare class CarteVitaleV1Document implements Prediction {
7
7
  /** The given name(s) of the card holder. */
@@ -4,7 +4,7 @@ exports.CarteVitaleV1Document = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const standard_1 = require("../../../parsing/standard");
6
6
  /**
7
- * Document data for Carte Vitale, API version 1.
7
+ * Carte Vitale API version 1.1 document data.
8
8
  */
9
9
  class CarteVitaleV1Document {
10
10
  constructor(rawPrediction, pageId) {
@@ -2,7 +2,7 @@ import { Inference, StringDict, Page } from "../../../parsing/common";
2
2
  import { IdCardV1Document } from "./idCardV1Document";
3
3
  import { IdCardV1Page } from "./idCardV1Page";
4
4
  /**
5
- * Inference prediction for Carte Nationale d'Identité, API version 1.
5
+ * Carte Nationale d'Identité API version 1 inference prediction.
6
6
  */
7
7
  export declare class IdCardV1 extends Inference {
8
8
  /** The endpoint's name. */
@@ -5,7 +5,7 @@ const common_1 = require("../../../parsing/common");
5
5
  const idCardV1Document_1 = require("./idCardV1Document");
6
6
  const idCardV1Page_1 = require("./idCardV1Page");
7
7
  /**
8
- * Inference prediction for Carte Nationale d'Identité, API version 1.
8
+ * Carte Nationale d'Identité API version 1 inference prediction.
9
9
  */
10
10
  class IdCardV1 extends common_1.Inference {
11
11
  constructor(rawPrediction) {
@@ -1,7 +1,7 @@
1
1
  import { Prediction, StringDict } from "../../../parsing/common";
2
2
  import { DateField, StringField } from "../../../parsing/standard";
3
3
  /**
4
- * Document data for Carte Nationale d'Identité, API version 1.
4
+ * Carte Nationale d'Identité API version 1.1 document data.
5
5
  */
6
6
  export declare class IdCardV1Document implements Prediction {
7
7
  /** The name of the issuing authority. */
@@ -4,7 +4,7 @@ exports.IdCardV1Document = void 0;
4
4
  const common_1 = require("../../../parsing/common");
5
5
  const standard_1 = require("../../../parsing/standard");
6
6
  /**
7
- * Document data for Carte Nationale d'Identité, API version 1.
7
+ * Carte Nationale d'Identité API version 1.1 document data.
8
8
  */
9
9
  class IdCardV1Document {
10
10
  constructor(rawPrediction, pageId) {
@@ -2,7 +2,7 @@ import { StringDict } from "../../../parsing/common";
2
2
  import { ClassificationField } from "../../../parsing/standard";
3
3
  import { IdCardV1Document } from "./idCardV1Document";
4
4
  /**
5
- * Page data for Carte Nationale d'Identité, API version 1.
5
+ * Carte Nationale d'Identité API version 1.1 page data.
6
6
  */
7
7
  export declare class IdCardV1Page extends IdCardV1Document {
8
8
  /** The side of the document which is visible. */