(row: ConnectionRow)
| 6995 | }); |
| 6996 | |
| 6997 | const rowToAdminConnection = (row: ConnectionRow): AdminConnection => { |
| 6998 | const owner = row.owner as Owner; |
| 6999 | return { |
| 7000 | owner, |
| 7001 | // Org rows carry the empty-string sentinel, not a principal. |
| 7002 | subject: owner === "org" ? null : row.subject, |
| 7003 | integration: IntegrationSlug.make(row.integration), |
| 7004 | name: ConnectionName.make(row.name), |
| 7005 | oauthScope: row.oauth_scope == null ? null : String(row.oauth_scope), |
| 7006 | lastHealth: presentedLastHealth(row), |
| 7007 | }; |
| 7008 | }; |
| 7009 | |
| 7010 | const listSubjects = ( |
| 7011 | options?: AdminListSubjectsOptions, |
no test coverage detected