export type DeleteApiApiTenantsTenantIdRegulationsRegulationIdLookupsSetsLookupIdArgs = {tenantId: number, regulationId: number, lookupId: number}; export type DeleteApiApiTenantsTenantIdRegulationsRegulationIdLookupsSetsLookupIdOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * DELETE /api/tenants/{tenantId}/regulations/{regulationId}/lookups/sets/{lookupId} */ export const deleteApiApiTenantsTenantIdRegulationsRegulationIdLookupsSetsLookupId = async (args: DeleteApiApiTenantsTenantIdRegulationsRegulationIdLookupsSetsLookupIdArgs, options: DeleteApiApiTenantsTenantIdRegulationsRegulationIdLookupsSetsLookupIdOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/api/tenants/${encodeURIComponent(String(args.tenantId))}/regulations/${encodeURIComponent(String(args.regulationId))}/lookups/sets/${encodeURIComponent(String(args.lookupId))}${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 };