Turns the rows the playlist and follow services read from playlists into the Playlist the API sends.

Functions

f
isPlaylistRow(obj: unknown): obj is PlaylistRow

Checks whether a row node:sqlite returned is a PlaylistRow.

f
playlistRowToApi(row: PlaylistRow): Playlist

Converts row to the Playlist the playlist routes send.

Interfaces

I
PlaylistRow

Returned by the playlist and follow services' SELECTs on playlists, which join the owner's name as owner_username. A query may add the dump_count and last_dump_at columns (VISIBLE_DUMP_FIGURES), which playlistRowToApi carries over when present.