(
organizationId: string,
project: { name: string; description: string },
)
| 2 | import { Project, ProjectSchema, ProjectInputs } from "./schemas"; |
| 3 | |
| 4 | export async function createProject( |
| 5 | organizationId: string, |
| 6 | project: { name: string; description: string }, |
| 7 | ): Promise<Project> { |
| 8 | return await fetchApi("/projects", ProjectSchema, { |
| 9 | method: "POST", |
| 10 | body: JSON.stringify({ |
| 11 | ...project, |
| 12 | organization_id: organizationId, |
| 13 | }), |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | export async function updateProject( |
| 18 | projectId: string, |
no test coverage detected
searching dependent graphs…