(row: ConnectionRow)
| 7087 | }); |
| 7088 | |
| 7089 | const rowToAdminConnection = (row: ConnectionRow): AdminConnection => { |
| 7090 | const owner = row.owner as Owner; |
| 7091 | return { |
| 7092 | owner, |
| 7093 | // Org rows carry the empty-string sentinel, not a principal. |
| 7094 | subject: owner === "org" ? null : row.subject, |
| 7095 | integration: IntegrationSlug.make(row.integration), |
| 7096 | name: ConnectionName.make(row.name), |
| 7097 | oauthScope: row.oauth_scope == null ? null : String(row.oauth_scope), |
| 7098 | lastHealth: presentedLastHealth(row), |
| 7099 | }; |
| 7100 | }; |
| 7101 | |
| 7102 | const listSubjects = ( |
| 7103 | options?: AdminListSubjectsOptions, |
no test coverage detected