(integration: string)
| 1196 | * connections port is optional, and a failure to enumerate must not |
| 1197 | * replace the real error with a different one. */ |
| 1198 | const bindingCandidates = (integration: string): Effect.Effect<readonly string[]> => |
| 1199 | config.connections |
| 1200 | ? config.connections.list().pipe( |
| 1201 | Effect.map((all) => |
| 1202 | all |
| 1203 | .filter((connection) => connection.integration === integration) |
| 1204 | .map( |
| 1205 | (connection) => |
| 1206 | `${connection.integration}.${connection.owner}.${connection.name}`, |
| 1207 | ), |
| 1208 | ), |
| 1209 | Effect.catchCause(() => Effect.succeed([] as readonly string[])), |
| 1210 | ) |
| 1211 | : Effect.succeed([]); |
| 1212 | |
| 1213 | /** The artifact as THIS caller can read it. A miss and a row owned by |
| 1214 | * someone else are the same answer, because they are the same query. */ |
no test coverage detected