export type GetApiRpcUnaccentArgs = {'': unknown}; export type GetApiRpcUnaccentOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * GET /rpc/unaccent */ export const getApiRpcUnaccent = async (args: GetApiRpcUnaccentArgs, options?: GetApiRpcUnaccentOptions) => { const {baseUrl = "https://vnaabuozknwgxuvnfwjo.supabase.co:443", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args[''] != null) query.append("", String(args[''])) const url = `${baseUrl.replace(/\/+$/, '')}/rpc/unaccent${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 undefined };