(client: DataSourceClient)
| 10 | import { FileWithHandle, fileOpen } from 'browser-fs-access'; |
| 11 | |
| 12 | const fetchDataSources = async (client: DataSourceClient) => { |
| 13 | let response; |
| 14 | try { |
| 15 | response = await client.list(); |
| 16 | } catch (error) { |
| 17 | console.error('the failed GET above is due to no connection to the backend API'); |
| 18 | response = []; |
| 19 | } |
| 20 | return response; |
| 21 | }; |
| 22 | |
| 23 | export const fetchDataSource = async (client: DataSourceClient, account: string, container: string) => { |
| 24 | const response = await client.get(account, container); |