parser-de-notas-de-corretagem 0.9.85 → 0.10.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/README.md CHANGED
@@ -9,6 +9,7 @@ Easing the PITA of making IRPF
9
9
  > Note: Inter support only v0.8.0 onwards
10
10
 
11
11
  ## Example result
12
+
12
13
  > The `price` and `average` fields already include the fees paid
13
14
  ```JSON
14
15
  [
package/notes-parser.d.ts CHANGED
@@ -121,9 +121,13 @@ export declare class NoteParser {
121
121
  * Read and parse a given PDF negotiation note by its full path
122
122
  * @param name PDF name
123
123
  * @param content PDF content
124
+ * @param possiblePasswords all passwords that should be used to open the PDF
125
+ * @param continueOnError whether should continue parsing even if encountering
126
+ * unknown notes. In such cases, the `code` will be set to `UNDEF: <title>` whereas
127
+ * `<title>` is the unknown asset. Default is `false`
124
128
  * @returns an `Array` of `NegotiationNote`
125
129
  */
126
- parseNote(noteName: string, content: Uint8Array, possiblePasswords?: string[]): Promise<NegotiationNote[]>;
130
+ parseNote(noteName: string, content: Uint8Array, possiblePasswords?: string[], continueOnError?: boolean): Promise<NegotiationNote[]>;
127
131
  /**
128
132
  * Add stock definition
129
133
  * @param code stock code