export type DeleteApiMfV1ReportReportIdArgs = {reportId: number}; export type DeleteApiMfV1ReportReportIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * delete report by id * * DELETE /mf/v1/report/{reportId} */ export const deleteApiMfV1ReportReportId = async (args: DeleteApiMfV1ReportReportIdArgs, options?: DeleteApiMfV1ReportReportIdOptions) => { const {baseUrl = "http://gateway.mlss.mf", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/mf/v1/report/${encodeURIComponent(String(args.reportId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };