export type GetApiApiApproveResumeArgs = {t?: (string | null) | undefined}; export type GetApiApiApproveResumeOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * Resume Page * * GET /api/approve/resume */ export const getApiApiApproveResume = async (args: GetApiApiApproveResumeArgs, options: GetApiApiApproveResumeOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "text/html") if (args.t != null) query.append("t", String(args.t)) const url = `${baseUrl.replace(/\/+$/, '')}/api/approve/resume${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.text() };