(toolkitId: string, connectionId: string, owner: Owner)
| 338 | ); |
| 339 | |
| 340 | const requireConnection = (toolkitId: string, connectionId: string, owner: Owner) => |
| 341 | storage.connections |
| 342 | .getForOwner({ owner, key: connectionId }) |
| 343 | .pipe( |
| 344 | Effect.flatMap((entry) => |
| 345 | entry && entry.data.toolkitId === toolkitId |
| 346 | ? Effect.succeed(entry) |
| 347 | : fail("Toolkit connection not found."), |
| 348 | ), |
| 349 | ); |
| 350 | |
| 351 | const create = (input: { |
| 352 | readonly owner: Owner; |
no test coverage detected