import client from '../client' ; import { AxiosRequestConfig } from 'axios' ; export async function attachmentAccessUrl ( id , context ) { const res = await client . get ( `/attachments/${ id }/url` , context ) ; return res ?. data ?. data ?. [ 0 ] . url ; }