(row: ConnectionRow)
| 6259 | }); |
| 6260 | |
| 6261 | const rowToAdminConnection = (row: ConnectionRow): AdminConnection => { |
| 6262 | const owner = row.owner as Owner; |
| 6263 | return { |
| 6264 | owner, |
| 6265 | // Org rows carry the empty-string sentinel, not a principal. |
| 6266 | subject: owner === "org" ? null : row.subject, |
| 6267 | integration: IntegrationSlug.make(row.integration), |
| 6268 | name: ConnectionName.make(row.name), |
| 6269 | oauthScope: row.oauth_scope == null ? null : String(row.oauth_scope), |
| 6270 | lastHealth: presentedLastHealth(row), |
| 6271 | }; |
| 6272 | }; |
| 6273 | |
| 6274 | const listSubjects = ( |
| 6275 | options?: AdminListSubjectsOptions, |
no test coverage detected