(toolkitId: string, connectionId: string, owner: Owner)
| 292 | ); |
| 293 | |
| 294 | const requireConnection = (toolkitId: string, connectionId: string, owner: Owner) => |
| 295 | storage.connections |
| 296 | .getForOwner({ owner, key: connectionId }) |
| 297 | .pipe( |
| 298 | Effect.flatMap((entry) => |
| 299 | entry && entry.data.toolkitId === toolkitId |
| 300 | ? Effect.succeed(entry) |
| 301 | : fail("Toolkit connection not found."), |
| 302 | ), |
| 303 | ); |
| 304 | |
| 305 | const create = (input: { |
| 306 | readonly owner: Owner; |
no test coverage detected