parser-de-notas-de-corretagem 0.6.1 → 0.7.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 +1 -1
- package/asset-crawler.d.ts +2 -2
- package/notes-parser.d.ts +3 -3
- package/notes-parser.js +1 -1
- package/notes-parser.js.map +1 -1
- package/package.json +2 -2
- package/types/corporative-events.d.ts +4 -78
- package/types/listed-real-estates.d.ts +7 -5
- package/types/listed-stocks.d.ts +5 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Parse Brazilian brokerage notes PDFs (
|
|
1
|
+
# Parse Brazilian brokerage notes PDFs (Rico and Clear holders available)
|
|
2
2
|
|
|
3
3
|
 [](https://github.com/planetsLightningArrester/parser-de-notas-de-corretagem/actions/workflows/ci.yml) [](https://github.com/planetsLightningArrester/parser-de-notas-de-corretagem/actions/workflows/assets-auto-update.yml)
|
|
4
4
|
|
package/asset-crawler.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Asset } from "./types/common";
|
|
2
2
|
import { StockInfos } from "./types/listed-stocks";
|
|
3
3
|
import { FiiInfos } from "./types/listed-real-estates";
|
|
4
|
-
import {
|
|
4
|
+
import { CashDividend, StockDividend } from "./types/corporative-events";
|
|
5
5
|
/** Types of asset verbosity */
|
|
6
6
|
export type AssetVerbosity = 'off' | 'all' | 'minimal';
|
|
7
7
|
/** Assets crawler manager */
|
|
@@ -58,7 +58,7 @@ export declare class AssetCrawler {
|
|
|
58
58
|
* @returns and `Array` where the first position is the list of stock dividends
|
|
59
59
|
* and the second position is a list of the cash dividends
|
|
60
60
|
*/
|
|
61
|
-
getDividends(code: string): [
|
|
61
|
+
getDividends(code: string): [StockDividend[], CashDividend[]];
|
|
62
62
|
/**
|
|
63
63
|
* Subscribe to updates when `autoUpdate` is `on` or
|
|
64
64
|
* when `fetchListedAssets` is manually called
|
package/notes-parser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssetCrawler, AssetVerbosity } from "./asset-crawler";
|
|
2
|
-
import {
|
|
3
|
-
export { AssetCrawler,
|
|
2
|
+
import { CashDividend, StockDividend } from './types/corporative-events';
|
|
3
|
+
export { AssetCrawler, CashDividend, StockDividend };
|
|
4
4
|
export type { AssetVerbosity };
|
|
5
5
|
/** Deal made in a `NegotiationNote` type */
|
|
6
6
|
export interface Deal {
|
|
@@ -108,7 +108,7 @@ export declare class NoteParser {
|
|
|
108
108
|
* @returns and `Array` where the first position is the list of stock dividends
|
|
109
109
|
* and the second position is a list of the cash dividends
|
|
110
110
|
*/
|
|
111
|
-
getDividends(code: string): [
|
|
111
|
+
getDividends(code: string): [StockDividend[], CashDividend[]];
|
|
112
112
|
/**
|
|
113
113
|
* Convert a date according to `dateFormat`
|
|
114
114
|
* @param date the date to be formatted
|