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

Function rowToAdminConnection

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

Source from the content-addressed store, hash-verified

6349 });
6350
6351 const rowToAdminConnection = (row: ConnectionRow): AdminConnection => {
6352 const owner = row.owner as Owner;
6353 return {
6354 owner,
6355 // Org rows carry the empty-string sentinel, not a principal.
6356 subject: owner === "org" ? null : row.subject,
6357 integration: IntegrationSlug.make(row.integration),
6358 name: ConnectionName.make(row.name),
6359 oauthScope: row.oauth_scope == null ? null : String(row.oauth_scope),
6360 lastHealth: presentedLastHealth(row),
6361 };
6362 };
6363
6364 const listSubjects = (
6365 options?: AdminListSubjectsOptions,

Callers 1

Calls 1

presentedLastHealthFunction · 0.85

Tested by

no test coverage detected