parser-de-notas-de-corretagem 0.6.0 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- # Parse Brazilian brokerage notes PDFs (Inter and Clear holders available)
1
+ # Parse Brazilian brokerage notes PDFs (Rico and Clear holders available)
2
2
 
3
3
  ![npm](https://img.shields.io/npm/v/parser-de-notas-de-corretagem) [![CI](https://github.com/planetsLightningArrester/parser-de-notas-de-corretagem/actions/workflows/ci.yml/badge.svg)](https://github.com/planetsLightningArrester/parser-de-notas-de-corretagem/actions/workflows/ci.yml) [![Assets auto update](https://github.com/planetsLightningArrester/parser-de-notas-de-corretagem/actions/workflows/assets-auto-update.yml/badge.svg)](https://github.com/planetsLightningArrester/parser-de-notas-de-corretagem/actions/workflows/assets-auto-update.yml)
4
4
 
@@ -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 { CashDividendShortVersion, StockDividendShortVersion } from "./types/corporative-events";
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): [StockDividendShortVersion[], CashDividendShortVersion[]];
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 { CashDividendShortVersion, StockDividendShortVersion } from './types/corporative-events';
3
- export { AssetCrawler, CashDividendShortVersion, StockDividendShortVersion };
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): [StockDividendShortVersion[], CashDividendShortVersion[]];
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