(row: ConnectionRow)
| 6349 | }); |
| 6350 | |
| 6351 | const rowToAdminConnection = (row: ConnectionRow): AdminConnection => { |
| 6352 | const owner = row.owner as Owner; |
| 6353 | return { |
| 6354 | owner, |
| 6355 | // Org rows carry the empty-string sentinel, not a principal. |
| 6356 | subject: owner === "org" ? null : row.subject, |
| 6357 | integration: IntegrationSlug.make(row.integration), |
| 6358 | name: ConnectionName.make(row.name), |
| 6359 | oauthScope: row.oauth_scope == null ? null : String(row.oauth_scope), |
| 6360 | lastHealth: presentedLastHealth(row), |
| 6361 | }; |
| 6362 | }; |
| 6363 | |
| 6364 | const listSubjects = ( |
| 6365 | options?: AdminListSubjectsOptions, |
no test coverage detected