export type DeleteApiPropertyColumnsArgs = {id?: string | undefined, column_id?: string | undefined, property_id?: string | undefined, Prefer?: ('return=representation' | 'return=minimal' | 'return=none') | undefined}; export type DeleteApiPropertyColumnsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * DELETE /property_columns */ export const deleteApiPropertyColumns = async (args: DeleteApiPropertyColumnsArgs, options?: DeleteApiPropertyColumnsOptions) => { const {baseUrl = "https://vnaabuozknwgxuvnfwjo.supabase.co:443", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.id != null) query.append("id", String(args.id)) if (args.column_id != null) query.append("column_id", String(args.column_id)) if (args.property_id != null) query.append("property_id", String(args.property_id)) if (args.Prefer != null) headers.set("Prefer", String(args.Prefer)) const url = `${baseUrl.replace(/\/+$/, '')}/property_columns${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 };