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

Function rowToAdminConnection

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

Source from the content-addressed store, hash-verified

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,

Callers 1

Calls 1

presentedLastHealthFunction · 0.85

Tested by

no test coverage detected