(projectId: string)
| 18 | } |
| 19 | |
| 20 | export async function getExperiments(projectId: string): Promise<Experiment[]> { |
| 21 | try { |
| 22 | return await fetchApi( |
| 23 | `/projects/${projectId}/experiments`, |
| 24 | ExperimentSchema.array(), |
| 25 | ); |
| 26 | } catch (error) { |
| 27 | console.error("[getExperiments] failed", error); |
| 28 | return []; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | export async function getProjectEmissionsByExperiment( |
| 33 | projectId: string, |
no test coverage detected
searching dependent graphs…