@alex.garcia/libfec / Filing
Class: Filing
Defined in: filing.ts:21
A whole filing read into memory by read. Re-iterable (for (const row of filing) walks rows), and there is nothing to close.
Implements
Iterable<Row<null>>
Properties
id
readonlyid:string|null
Defined in: filing.ts:23
The filing ID; see FilingReader.id.
fecVersion
readonlyfecVersion:string
Defined in: filing.ts:25
The filing's format version.
header
readonlyheader:Header
Defined in: filing.ts:27
The filing's header.
cover
readonlycover:Cover|null
Defined in: filing.ts:29
The typed cover; see FilingReader.cover.
coverSummary
readonlycoverSummary:CoverSummary
Defined in: filing.ts:31
The six cover fields every form has.
coverRow
readonlycoverRow:Row<null>
Defined in: filing.ts:33
The cover record as a raw Row.
rows
readonlyrows: readonlyRow<null>[]
Defined in: filing.ts:35
Every row after the cover, untyped (itemization is null).
invalidValues
readonlyinvalidValues: readonlyInvalidValue[]
Defined in: filing.ts:37
Amounts and dates in rows that didn't parse: the first 1,000.
invalidValueCount
readonlyinvalidValueCount:number
Defined in: filing.ts:39
How many amounts and dates didn't parse, uncapped.
skippedRows
readonlyskippedRows: readonlySkippedRow[]
Defined in: filing.ts:41
Rows skipped with unknownRows: "skip".
Accessors
length
Get Signature
get length():
number
Defined in: filing.ts:64
rows.length.
Returns
number
Methods
itemizations()
itemizations(): readonly
Row<Itemization>[]
Defined in: filing.ts:75
The typed rows (see FilingReader.itemizations). The first call reads the source again, typing every row, and caches the result: later calls return the same array. A bytes source is kept alive for this; a path that changed or vanished since read gives different rows or ENOENT.
Returns
readonly Row<Itemization>[]
[iterator]()
[iterator]():
IterableIterator<Row<null>>
Defined in: filing.ts:88
Iterate rows; a Filing can be iterated any number of times.
Returns
IterableIterator<Row<null>>
Implementation of
Iterable.[iterator]