( admin: ExecutorAdmin, externalId: string, )
| 456 | }); |
| 457 | |
| 458 | export const listUserConnections = ( |
| 459 | admin: ExecutorAdmin, |
| 460 | externalId: string, |
| 461 | ): Effect.Effect<typeof AdminUserConnectionsResponse.Type, AdminUsersError> => |
| 462 | admin.listSubjectConnections(externalId).pipe( |
| 463 | Effect.map((connections) => ({ connections: connections.map(toConnection) })), |
| 464 | Effect.mapError(readFailed("connections")), |
| 465 | ); |