(subject: AdminSubject, identities: ReadonlyMap<string, AdminUserIdentity>)
| 158 | * reports absent identity beside otherwise complete row data. |
| 159 | */ |
| 160 | const toUser = (subject: AdminSubject, identities: ReadonlyMap<string, AdminUserIdentity>) => { |
| 161 | const identity = identities.get(subject.externalId) ?? ABSENT_IDENTITY; |
| 162 | return { |
| 163 | externalId: subject.externalId, |
| 164 | createdAt: subject.createdAt.getTime(), |
| 165 | lastSeenAt: subject.lastSeenAt, |
| 166 | status: subject.status, |
| 167 | email: identity.email, |
| 168 | displayName: identity.displayName, |
| 169 | }; |
| 170 | }; |
| 171 | |
| 172 | /** |
| 173 | * The stored health verdict → the admin plane's `AdminConnectionHealth`. |
no test coverage detected