(integration: string)
| 1278 | * connections port is optional, and a failure to enumerate must not |
| 1279 | * replace the real error with a different one. */ |
| 1280 | const bindingCandidates = (integration: string): Effect.Effect<readonly string[]> => |
| 1281 | config.connections |
| 1282 | ? config.connections.list().pipe( |
| 1283 | Effect.map((all) => |
| 1284 | all |
| 1285 | .filter((connection) => connection.integration === integration) |
| 1286 | .map( |
| 1287 | (connection) => |
| 1288 | `${connection.integration}.${connection.owner}.${connection.name}`, |
| 1289 | ), |
| 1290 | ), |
| 1291 | Effect.catchCause(() => Effect.succeed([] as readonly string[])), |
| 1292 | ) |
| 1293 | : Effect.succeed([]); |
| 1294 | |
| 1295 | /** The artifact as THIS caller can read it. A miss and a row owned by |
| 1296 | * someone else are the same answer, because they are the same query. */ |
no test coverage detected