( paramsOrProjectRef?: ListRunsQueryParams | string, params?: ListRunsQueryParams | ListProjectRunsQueryParams )
| 27 | ): CursorPagePromise<typeof ListRunResponseItem>; |
| 28 | function listRuns(params?: ListRunsQueryParams): CursorPagePromise<typeof ListRunResponseItem>; |
| 29 | function listRuns( |
| 30 | paramsOrProjectRef?: ListRunsQueryParams | string, |
| 31 | params?: ListRunsQueryParams | ListProjectRunsQueryParams |
| 32 | ): CursorPagePromise<typeof ListRunResponseItem> { |
| 33 | const apiClient = apiClientManager.client; |
| 34 | |
| 35 | if (!apiClient) { |
| 36 | throw apiClientMissingError(); |
| 37 | } |
| 38 | |
| 39 | if (typeof paramsOrProjectRef === "string") { |
| 40 | return apiClient.listProjectRuns(paramsOrProjectRef, params); |
| 41 | } |
| 42 | |
| 43 | return apiClient.listRuns(params); |
| 44 | } |
| 45 | |
| 46 | function retrieveRun(runId: string): ApiPromise<RetrieveRunResult> { |
| 47 | const apiClient = apiClientManager.client; |
nothing calls this directly
no test coverage detected
searching dependent graphs…