export type GetApihttpLocalhost8000ProjectIdTreenodesTreenodeIdSuppressedVirtualArgs = {project_id: string, treenode_id: string}; export type GetApihttpLocalhost8000ProjectIdTreenodesTreenodeIdSuppressedVirtualOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * List suppressed virtual nodes along the edge to this node. * * GET http://localhost:8000/{project_id}/treenodes/{treenode_id}/suppressed-virtual/ */ export const getApihttpLocalhost8000ProjectIdTreenodesTreenodeIdSuppressedVirtual = async (args: GetApihttpLocalhost8000ProjectIdTreenodesTreenodeIdSuppressedVirtualArgs, options?: GetApihttpLocalhost8000ProjectIdTreenodesTreenodeIdSuppressedVirtualOptions) => { const {baseUrl = "http://localhost:8000", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}http://localhost:8000/${encodeURIComponent(String(args.project_id))}/treenodes/${encodeURIComponent(String(args.treenode_id))}/suppressed-virtual/${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 };