export type GetApiConceptualAnalyticsV1WorkspacesWorkspaceIDIndexesIndexIDStatusArgs = {workspaceID: number, indexID: number}; export type GetApiConceptualAnalyticsV1WorkspacesWorkspaceIDIndexesIndexIDStatusOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * [Public] IConceptualIndexService * * GET /conceptual-analytics/v1/workspaces/{workspaceID}/indexes/{indexID}/status */ export const getApiConceptualAnalyticsV1WorkspacesWorkspaceIDIndexesIndexIDStatus = async (args: GetApiConceptualAnalyticsV1WorkspacesWorkspaceIDIndexesIndexIDStatusArgs, options: GetApiConceptualAnalyticsV1WorkspacesWorkspaceIDIndexesIndexIDStatusOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() const url = `${baseUrl.replace(/\/+$/, '')}/conceptual-analytics/v1/workspaces/${encodeURIComponent(String(args.workspaceID))}/indexes/${encodeURIComponent(String(args.indexID))}/status${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 };