(subject: AdminSubject, identities: ReadonlyMap<string, AdminUserIdentity>)
| 174 | * reports absent identity beside otherwise complete row data. |
| 175 | */ |
| 176 | const toUser = (subject: AdminSubject, identities: ReadonlyMap<string, AdminUserIdentity>) => { |
| 177 | const identity = identities.get(subject.externalId) ?? ABSENT_IDENTITY; |
| 178 | return { |
| 179 | externalId: subject.externalId, |
| 180 | createdAt: subject.createdAt.getTime(), |
| 181 | lastSeenAt: subject.lastSeenAt, |
| 182 | status: subject.status, |
| 183 | email: identity.email, |
| 184 | displayName: identity.displayName, |
| 185 | }; |
| 186 | }; |
| 187 | |
| 188 | /** |
| 189 | * The stored health verdict → the admin plane's `AdminConnectionHealth`. |
no test coverage detected