(
externalId: string,
)
| 7212 | // Absent subject short-circuits: no connection query is issued for a |
| 7213 | // principal the tenant never recorded. |
| 7214 | const getSubjectWithConnections = ( |
| 7215 | externalId: string, |
| 7216 | ): Effect.Effect<AdminSubjectWithConnections | null, StorageFailure> => |
| 7217 | Effect.gen(function* () { |
| 7218 | const subject = yield* getSubject(externalId); |
| 7219 | if (subject === null) return null; |
| 7220 | const connections = yield* listSubjectConnections(externalId); |
| 7221 | return { ...subject, connections }; |
| 7222 | }); |
| 7223 | |
| 7224 | return { |
| 7225 | listSubjects, |
nothing calls this directly
no test coverage detected