({
indexId,
apiClient,
}: {
indexId: string;
apiClient: TriggerApi;
})
| 323 | } |
| 324 | |
| 325 | async function fetchIndexResult({ |
| 326 | indexId, |
| 327 | apiClient, |
| 328 | }: { |
| 329 | indexId: string; |
| 330 | apiClient: TriggerApi; |
| 331 | }) { |
| 332 | const result = await apiClient.getEndpointIndex(indexId); |
| 333 | |
| 334 | if (result.status === "STARTED" || result.status === "PENDING") { |
| 335 | throw new Error("Indexing is still in progress"); |
| 336 | } |
| 337 | |
| 338 | return result; |
| 339 | } |
| 340 | |
| 341 | async function resolveOptions( |
| 342 | framework: Framework | undefined, |
no test coverage detected
searching dependent graphs…