Skip to content

@alex.garcia/libfec / Header

Interface: Header ​

Defined in: header.ts:10

A filing's header: the HDR record, or a 1.x/2.x /* Header block.

Properties ​

recordType ​

readonly recordType: string

Defined in: header.ts:12

"HDR", or "/*" for a 1.x/2.x /* Header block.


efType ​

readonly efType: string

Defined in: header.ts:14

"FEC"; empty for paper filings.


fecVersion ​

readonly fecVersion: string

Defined in: header.ts:16

The format version, e.g. "8.4" ("P3.4" for paper).


softwareName ​

readonly softwareName: string

Defined in: header.ts:18

The software that produced the filing ("FECfile", "NGP").


softwareVersion ​

readonly softwareVersion: string

Defined in: header.ts:20

Its version, as the software reports it.


reportId ​

readonly reportId: string | null

Defined in: header.ts:22

For an amendment, the FEC ID of the report it amends ("FEC-1228863").


reportNumber ​

readonly reportNumber: string | null

Defined in: header.ts:24

The amendment number: "1" for the first amendment, …


comment ​

readonly comment: string | null

Defined in: header.ts:26

The filer's free-text header comment.


style ​

readonly style: "hdr" | "legacy_block" | "paper"

Defined in: header.ts:28

How the header is written: "hdr", "legacy_block" or "paper".


delimiter ​

readonly delimiter: "fs" | "comma"

Defined in: header.ts:30

Body field delimiter: "fs" (0x1C) or "comma".


nameDelimiter ​

readonly nameDelimiter: string | null

Defined in: header.ts:32

Sub-delimiter of combined name fields (3.x–5.x and 1.x/2.x only).


batchNumber ​

readonly batchNumber: string | null

Defined in: header.ts:34

Paper filings: FEC data-entry batch number.


receivedDate ​

readonly receivedDate: string | null

Defined in: header.ts:36

Paper filings P2.6+: date the FEC received the filing.


isPaper ​

readonly isPaper: boolean

Defined in: header.ts:38

Whether this is FEC data entry of a paper filing.


legacyFields ​

readonly legacyFields: Readonly<Record<string, string>>

Defined in: header.ts:40

1.x/2.x /* Header block: every key = value line before Schedule_Counts:, in file order. Empty otherwise.


scheduleCounts ​

readonly scheduleCounts: Readonly<Record<string, string>>

Defined in: header.ts:42

1.x/2.x /* Header block: the Schedule_Counts: lines (row type → count as written). Empty otherwise.