(integration: string)
| 1219 | * connections port is optional, and a failure to enumerate must not |
| 1220 | * replace the real error with a different one. */ |
| 1221 | const bindingCandidates = (integration: string): Effect.Effect<readonly string[]> => |
| 1222 | config.connections |
| 1223 | ? config.connections.list().pipe( |
| 1224 | Effect.map((all) => |
| 1225 | all |
| 1226 | .filter((connection) => connection.integration === integration) |
| 1227 | .map( |
| 1228 | (connection) => |
| 1229 | `${connection.integration}.${connection.owner}.${connection.name}`, |
| 1230 | ), |
| 1231 | ), |
| 1232 | Effect.catchCause(() => Effect.succeed([] as readonly string[])), |
| 1233 | ) |
| 1234 | : Effect.succeed([]); |
| 1235 | |
| 1236 | /** The artifact as THIS caller can read it. A miss and a row owned by |
| 1237 | * someone else are the same answer, because they are the same query. */ |
no test coverage detected