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

Function rowToAdminConnection

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

Source from the content-addressed store, hash-verified

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,

Callers 1

Calls 1

presentedLastHealthFunction · 0.85

Tested by

no test coverage detected