@mega-yfue/eufy-sdk / parseCleanRecords
Function: parseCleanRecords()
function parseCleanRecords(raw): CleanRecordPage;Parse a get_device_clean_record_list response into a CleanRecordPage.
raw is the response's data object, already unwrapped by the transport — so the array sits at the top level under clean_record_list, beside total.
A record without a usable id is skipped rather than admitted with a fabricated one: the id is what identifies the run, and a record that cannot be named is not a record a caller can act on. Every other field degrades to a default, so one odd entry never costs the whole page.
user_id and device_sn are present in the response and deliberately not surfaced — the caller already knows which device it asked about, and the account id is not this type's business.
Returns EMPTY_CLEAN_RECORD_PAGE on any shape mismatch — never throws.
Parameters
raw
unknown