export type GetApihttpLocalhost8000ProjectIdTreenodesTreenodeIdCompactDetailArgs = {project_id: string, treenode_id: string}; export type GetApihttpLocalhost8000ProjectIdTreenodesTreenodeIdCompactDetailOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Retrieve node information in a compact form. A list of the following form * * GET http://localhost:8000/{project_id}/treenodes/{treenode_id}/compact-detail */ export const getApihttpLocalhost8000ProjectIdTreenodesTreenodeIdCompactDetail = async (args: GetApihttpLocalhost8000ProjectIdTreenodesTreenodeIdCompactDetailArgs, options?: GetApihttpLocalhost8000ProjectIdTreenodesTreenodeIdCompactDetailOptions) => { 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))}/compact-detail${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 };