Comparing version 4.6.1 to 4.7.0
# CHANGELOG | ||
## v4.7.0 - 2024-01-30 | ||
### Changes | ||
* :arrow_up: update invoices to 4.4 | ||
* :sparkles: add rawValue to string fields. | ||
## v4.6.1 - 2023-12-15 | ||
@@ -4,0 +10,0 @@ ### Changes |
{ | ||
"name": "mindee", | ||
"version": "4.6.1", | ||
"version": "4.7.0", | ||
"description": "Mindee Client Library for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -50,3 +50,3 @@ [![License: MIT](https://img.shields.io/github/license/mindee/mindee-api-nodejs)](https://opensource.org/licenses/MIT) [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/mindee/mindee-api-nodejs/test.yml)](https://github.com/mindee/mindee-api-nodejs) [![NPM Version](https://img.shields.io/npm/v/mindee)](https://www.npmjs.com/package/mindee) [![Downloads](https://img.shields.io/npm/dm/mindee)](https://www.npmjs.com/package/mindee) | ||
```js | ||
const inputSource = mindeeClient.docFromBuffer(myReadableStream, "my-file-name") | ||
const inputSource = mindeeClient.docFromStream(myReadableStream, "my-file-name") | ||
``` | ||
@@ -53,0 +53,0 @@ |
@@ -15,3 +15,5 @@ import { StringDict } from "../common"; | ||
value?: string; | ||
/** Value as it appears on the document. */ | ||
rawValue?: string; | ||
constructor({ prediction, valueKey, reconstructed, pageId, }: FieldConstructor); | ||
} |
@@ -11,4 +11,7 @@ "use strict"; | ||
super({ prediction, valueKey, reconstructed, pageId }); | ||
if (prediction["raw_value"]) { | ||
this.rawValue = prediction["raw_value"]; | ||
} | ||
} | ||
} | ||
exports.StringField = StringField; |
@@ -42,2 +42,4 @@ import { Prediction, StringDict } from "../../parsing/common"; | ||
totalNet: AmountField; | ||
/** The total tax: includes all the taxes paid for this invoice. */ | ||
totalTax: AmountField; | ||
constructor(rawPrediction: StringDict, pageId?: number); | ||
@@ -44,0 +46,0 @@ /** |
@@ -90,2 +90,6 @@ "use strict"; | ||
}); | ||
this.totalTax = new standard_1.AmountField({ | ||
prediction: rawPrediction["total_tax"], | ||
pageId: pageId, | ||
}); | ||
} | ||
@@ -121,2 +125,3 @@ /** | ||
:Total Amount: ${this.totalAmount} | ||
:Total Tax: ${this.totalTax} | ||
:Taxes: ${this.taxes} | ||
@@ -123,0 +128,0 @@ :Supplier Payment Details: ${supplierPaymentDetails} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
405612
9451