import Client from '../client' ; import { ProjectSettings } from '../../types' ; interface ProjectSettingsResponse extends ProjectSettings { id : string ; name : string ; updatedAt : number ; createdAt : number ; } export default async function updateProject ( client , prjNameOrId , settings ) { const res = await client . fetch < ProjectSettingsResponse > ( `/v2/projects/${ encodeURIComponent ( prjNameOrId ) }` , { method : 'PATCH' , body : JSON . stringify ( settings ) , } ) ; return res ; }