import { client } from "../client"; import { normalizePage, pageQuery, type Page, type PageParams } from "../client"; import type { MealLedgerEntry } from "../client"; export async function getMealLedgerByUserId( userId: string, params?: PageParams, signal?: AbortSignal, ): Promise> { const data = await client(`/meals/ledger/${encodeURIComponent(userId)}${pageQuery(params)}`, { signal }); return normalizePage(data); }