(row: ConnectionRow)
| 6860 | }); |
| 6861 | |
| 6862 | const rowToAdminConnection = (row: ConnectionRow): AdminConnection => { |
| 6863 | const owner = row.owner as Owner; |
| 6864 | return { |
| 6865 | owner, |
| 6866 | // Org rows carry the empty-string sentinel, not a principal. |
| 6867 | subject: owner === "org" ? null : row.subject, |
| 6868 | integration: IntegrationSlug.make(row.integration), |
| 6869 | name: ConnectionName.make(row.name), |
| 6870 | oauthScope: row.oauth_scope == null ? null : String(row.oauth_scope), |
| 6871 | lastHealth: presentedLastHealth(row), |
| 6872 | }; |
| 6873 | }; |
| 6874 | |
| 6875 | const listSubjects = ( |
| 6876 | options?: AdminListSubjectsOptions, |
no test coverage detected