MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / rowToAdminConnection

Function rowToAdminConnection

packages/core/sdk/src/executor.ts:6261–6272  ·  view source on GitHub ↗
(row: ConnectionRow)

Source from the content-addressed store, hash-verified

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,

Callers 1

Calls 1

presentedLastHealthFunction · 0.85

Tested by

no test coverage detected