import client from '../client' ; import { AxiosRequestConfig } from 'axios' ; export type FindManyOpts = { taskId : string ; } ; export async function approvalForTask ( opts , context ) { const { taskId } = opts || { } ; const res = await client . get ( `/tasks/${ taskId }/approvals` , context ) ; return res ?. data ?. data ; }