Function: parse_pff_v2_table()
parse_pff_v2_table(
raw,section?):Row[]
Defined in: src/parsers/pff_api.ts:304
Parse a /v2 table body ({...meta, columns: [{key, label, type}], rows}).
The declared types ARE the schema: integer / number / boolean / string; every
id / *_id column is an integer join key whatever the declaration says.
Declared columns come first, in PFF's order; a declared column missing from
every row is added as null. Metadata beside the table (team, sos,
updatedAt, …) is not a column — read it from the raw body.
Parameters
raw
any
section?
string
Which table: "rows" (default) or "teamTotals" (sdv-py's table).
Returns
Row[]