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

Function rowToIntegration

packages/core/sdk/src/executor.ts:948–965  ·  view source on GitHub ↗
(
  row: IntegrationRow,
  authMethods: readonly AuthMethodDescriptor[] = [],
  display?: IntegrationDisplayDescriptor,
)

Source from the content-addressed store, hash-verified

946};
947
948const rowToIntegration = (
949 row: IntegrationRow,
950 authMethods: readonly AuthMethodDescriptor[] = [],
951 display?: IntegrationDisplayDescriptor,
952): Integration => ({
953 slug: IntegrationSlug.make(row.slug),
954 // Pre-split rows have no `name`; their description WAS the display name.
955 name: row.name ?? row.description ?? row.slug,
956 // `description` is now nullable (cleared where it only held a duplicated
957 // title); present it as "" so the public Integration type stays a string.
958 description: row.description ?? "",
959 kind: row.plugin_id,
960 canRemove: Boolean(row.can_remove),
961 canRefresh: Boolean(row.can_refresh),
962 authMethods,
963 ...(display?.url ? { displayUrl: display.url } : {}),
964 ...(display?.family ? { family: display.family } : {}),
965});
966
967const rowToIntegrationRecord = (
968 row: IntegrationRow,

Callers 4

rowToIntegrationRecordFunction · 0.85
integrationsListFunction · 0.85
integrationsGetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected