(integration: string)
| 1247 | * connections port is optional, and a failure to enumerate must not |
| 1248 | * replace the real error with a different one. */ |
| 1249 | const bindingCandidates = (integration: string): Effect.Effect<readonly string[]> => |
| 1250 | config.connections |
| 1251 | ? config.connections.list().pipe( |
| 1252 | Effect.map((all) => |
| 1253 | all |
| 1254 | .filter((connection) => connection.integration === integration) |
| 1255 | .map( |
| 1256 | (connection) => |
| 1257 | `${connection.integration}.${connection.owner}.${connection.name}`, |
| 1258 | ), |
| 1259 | ), |
| 1260 | Effect.catchCause(() => Effect.succeed([] as readonly string[])), |
| 1261 | ) |
| 1262 | : Effect.succeed([]); |
| 1263 | |
| 1264 | /** The artifact as THIS caller can read it. A miss and a row owned by |
| 1265 | * someone else are the same answer, because they are the same query. */ |
no test coverage detected