(partial: {
name?: string
baseUrl: string
token: string
intervalMinutes: number
pullLimit?: number
})
| 343 | } |
| 344 | |
| 345 | async function addDataSource(partial: { |
| 346 | name?: string |
| 347 | baseUrl: string |
| 348 | token: string |
| 349 | intervalMinutes: number |
| 350 | pullLimit?: number |
| 351 | }) { |
| 352 | try { |
| 353 | const ds = await transport.addDataSource(partial) |
| 354 | dataSources.value.push(ds) |
| 355 | return ds |
| 356 | } catch (err) { |
| 357 | console.error('[ApiServerStore] Failed to add data source:', err) |
| 358 | return null |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | async function updateDataSource( |
| 363 | id: string, |
nothing calls this directly
no test coverage detected