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

Function rowToAdminConnection

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

Source from the content-addressed store, hash-verified

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,

Callers 1

Calls 1

presentedLastHealthFunction · 0.85

Tested by

no test coverage detected