* @returns {Promise []>}
()
| 80 | * @returns {Promise<Record<string, any>[]>} |
| 81 | */ |
| 82 | async function listFiles() { |
| 83 | const {data: filesData} = await performApiRequest('/files', { |
| 84 | method: 'GET', |
| 85 | params: { |
| 86 | limit: MAX_ITEMS_PER_PAGE, |
| 87 | }, |
| 88 | }); |
| 89 | return filesData.map(({data}) => data); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * @param {number} fileId |
no test coverage detected