import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client"; import type { FeePlanAssignment } from "./types"; export async function getPlanAssignments( planId: string, params?: PageParams, signal?: AbortSignal, ): Promise> { const data = await client( `/payments/plans/${encodeURIComponent(planId)}/assignments${pageQuery(params)}`, { signal }, ); return normalizePage(data); }